Consultor Eletrônico



Kbase 35317: What are the rules for INDEX HINTS with Oracle DataServer?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   8/15/2000
Solution ID: P5317

GOAL:

What are the rules for INDEX HINTS with Oracle DataServer?

FACT(s) (Environment):

Oracle DataServer

FIX:

The following are Progress rules for generating index hints to ORACLE.

1. If it's a join on the server, NO index hint.

2. If there is a use-index clause, it generates a hint.

3. If there is a BY clause (or implied ordering as in a FIND statement) and another index does NOT exist that would do a better job of selection in the WHERE clause, then an index hint is generated to help the ordering of the result set.

4. If the WHERE clause is ROWID = :value, a hint to retrieve by ROWID is given (also applies to DELETE and UPDATE).

5. If the WHERE clause is PROGRESS_RECID = :value, an index hint for
<table-name>##PROGRESS_RECID is issued.

Please note that these rules have been modified over time, and can change in the future. For instance, initially hints were only considered for tables with a PROGRESS_RECID column.