|
Helping the DBMS find the correct index |
|
|
|
|
Written by Kevin Wilson
|
|
Wednesday, 31 January 2007 |
Sometime, you may find that the a SELECT that you have coded is very slow, even though you have put all the fields needed for an index in your where clause. Usually, this means that the DBMS is selecting the wrong index, you can tell if this is the case by doing an SQL trace (System - Utilities - SQL Trace or ST05). You can help the DBMS select the correct index by providing hints, include all fields from the index, and make sure that the fields are in the same order as they appear in the index.
Related Items:
|