Hi there!
Very glad I discovered this forum and your blog! Some very interesting reads! I am working on my thesis for my IT-Bachelor and it involves performance, so any help is very much appreciated.
This may sound like an Amateur Question but I’m really mystified as to why MySQL chooses to use a Filesort and not my Index to process this statement:
SELECT * FROM Kontakt
ORDER BY Email
;
The table is created like this:
CREATE TABLE Kontakt
(
id
int(11) NOT NULL default ‘0’,
EMail
varchar(255) NOT NULL default ‘’,
PRIMARY KEY (id
),
KEY EMail
(EMail
)
) ENGINE=MyISAM;
I am using MySQL 5.0.22.
In the MySQL Reference it says that my select statement certainly would be using the index created…but it doesnt show when using explain and also performs slowly when having thousands of rows…
http://dev.mysql.com/doc/refman/5.0/en/order-by-optimization .html
Thanks for any hints…I don’t mind being stupid, as long as someone is able to explain it to me;)
Lars