You are on page 1of 1

How to Check if an Index is Used Procedure Open a second session and choose System Utilities Performance trace.

e. The Trace Requests screen appears. Select Trace on. The SQL trace is activated for your user, that is all the database operations un der your user are recorded. In the first window, perform the action in which the index should be used. If your database system uses a cost-based optimizer, you should perform this act ion with as representative data as possible. A cost-based optimizer tries to det ermine the best index based on the statistics. In the second session, choose Trace off and then Trace list. Result The format of the generated output depends on the database system used. You can determine the index that the database used for your action with the EXPLAIN func tion for the critical statements (PREPARE, OPEN, REPOPEN).

You might also like