Abfrageoptimierung
Hallo,
ich nutze eine einfache Abfrage
SELECT index1 FROM Tabelle WHERE index2 = 138
Die Ausführung der Abfrage dauert sehr lange und MYSQL erstellt dazu eine Temp-Tabelle, obwohl beide Felder indiziert sind (BTREE). Die Tabelle ist MyISAM.
Was muss ich ändern, damit MySQL den Index benutzt und nicht eine Temp-Tabelle aufbaut?
Torsten Menze
Subject
Views
Written By
Posted
Abfrageoptimierung
4608
April 16, 2009 01:17AM
2198
April 20, 2009 01:58PM
2640
April 27, 2009 08:26AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.