Hi there,
This is my first post, so let me introduce myself. I develop web sites such as http://mobilezoo.biz and http://boursomac.com and I'm really interested in mysql performances.
And I've got a question on a simple situation: I've got a table 'thistable' with an indexed column 'date' which has about 90K lines. date is of DATETIME type, the table is using myIsam and has a primary index in addition to an index on date.
When performing EXPLAIN SELECT * FROM thistable ORDER BY date LIMIT 1,100 MySql says it runs through all rows, while still using index 'date'. I certainly missing something here. Why does it need to look at all rows ?
Thanks in advance,
Sdl
This is my first post, so let me introduce myself. I develop web sites such as http://mobilezoo.biz and http://boursomac.com and I'm really interested in mysql performances.
And I've got a question on a simple situation: I've got a table 'thistable' with an indexed column 'date' which has about 90K lines. date is of DATETIME type, the table is using myIsam and has a primary index in addition to an index on date.
When performing EXPLAIN SELECT * FROM thistable ORDER BY date LIMIT 1,100 MySql says it runs through all rows, while still using index 'date'. I certainly missing something here. Why does it need to look at all rows ?
Thanks in advance,
Sdl
Comment