Temporary index probe
A temporary index probe operation is identical to the index probe operation that is performed on the permanent radix index. Its main function is to provide quick access against the index keys of the temporary index. However, it can still be used to retrieve the rows from a table in a keyed sequence.
The temporary index is used by the optimizer to satisfy the join portion of the query request.
Data access method | Temporary index probe |
---|---|
Description | The index is quickly probed based upon the selection criteria that were rewritten into a series of ranges. Only those keys that satisfy the selection is used to generate a table row number. |
Advantages |
|
Considerations | Generally requires a Table Probe to be performed to extract any remaining columns required to satisfy the query. Can perform poorly when many rows are selected because of the random I/O associated with the Table Probe. |
Likely to be used |
|
Example SQL statement |
|
Database Monitor and Plan Cache record indicating use | QQRID 3002 record and QQRID 3001 where QQKP(Index_Probe_Used) = 'Y'. |
SMP parallel enabled | Yes |
Also referred to as | Index Probe Index Probe, Preload Index Probe, Distinct Index Probe Distinct, Preload Index Probe, Key Selection |
Visual Explain icon | ![]() |
Using the example above, the optimizer chose to create a temporary index over the DeptNo column to help satisfy the join requirement against the DEPARTMENT table. A temporary index probe was then performed against the temporary index to process the join criteria between the two tables. In this particular case, there was no additional selection that might be applied against the DEPARTMENT table while the temporary index was being created.