hi,
ich bin grad (mysql) DB Abfragen am optimieren,
Vorgriff auf Vinzenz' Antwort: Welche Version?
SELECT * FROM tabelle ORDER BY datum
datum ist ein Index
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE tabelle ALL NULL NULL NULL NULL 7 Using filesortWarum taucht hier using filesort auf?
Sieht doch so aus, als ob dein Index gar nicht benutzt wird ...?
Kann ich mir aus
http://dev.mysql.com/doc/refman/4.1/en/explain.html und
http://dev.mysql.com/doc/refman/4.1/en/order-by-optimization.html
gerade auch nicht wirklich erklären - lass uns auf Godot, Verzeihung: Vinzenz, warten :-)
Weil die Tabelle nur 7 Einträge hat?
Sollte m.E. damit nichts zu tun haben.
gruß,
wahsaga
/voodoo.css:
#GeorgeWBush { position:absolute; bottom:-6ft; }