Ok here is the problem...
I have a hit tracking table, after it reaches roughly 2 million rows, the queries start to slow. A simple limit query such as this will take about 15 seconds to run.
SELECT * FROM track LIMIT 2962241 , 30
What is the most likely cause of this? I was thinking hardware limitations but we are already using a dedicated mysql server.
Does anyone have any ideas what it could be?
Here is the basic track table structure:
CREATE TABLE track (
track_id int(11) NOT NULL auto_increment,
add_time datetime default NULL,
ip_address varchar(16) NOT NULL default '000.000.000.000',
referrer int(11) default NULL,
ua int(11) default NULL,
host int(11) default NULL,
request_uri int(11) default NULL,
demo_id varchar(19) default NULL,
client_id mediumint(9) NOT NULL default '0',
site_id mediumint(9) NOT NULL default '0',
PRIMARY KEY (track_id)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
Referrer, UA, Host, and Request_uri are all ID's only that link to their corresponding tables. It is not full user data.