Home » Performance » MySQL » SELECT * FROM thistable ORDER BY date
SELECT * FROM thistable ORDER BY date [message #1729] Mon, 03 September 2007 16:49 Go to previous message
sdeluca  is currently offline sdeluca
Messages: 4
Registered: September 2007
Location: France
Junior Member
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


Come and enjoy http://mobilezoo.biz and http://boursomac.com

Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Tables get locked and won't unlock
Next Topic:dinamyc images
Goto Forum:

  


Current Time: Sun Jul 5 14:59:32 EDT 2009

Total time taken to generate the page: 0.00540 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 2.7.7.
Copyright ©2001-2007 FUD Forum Bulletin Board Software

MySQL is a trademark of Sun Microsystems.
InnoDB is a trademark of Oracle Corp.

Percona Performance Forums are a service of Percona, Inc.
Not affiliated with Sun Microsystems or Oracle Corp.