Background documentation Optimizer strategies Locate the document in its SAP Library structure

<number of> <optimizer_strategy_executes>, selectivity <percentage>%: <number of> rows read, <number of> rows qualified

Explanation

The ratio of read table rows to found table rows is poor when a particular access strategy ( <optimizer_strategy_executes>) is used.

The access strategy can be one of the following strategies:

·         Primary key accesses
(
Structure linkEQUAL CONDITION FOR KEY COLUMN,
Structure linkEQUAL CONDITION FOR KEY COLUMN (SUBQ),
Structure linkIN CONDITION FOR KEY COLUMN)

·         Primary key range accesses
(Structure linkRANGE CONDITION FOR KEY COLUMN,
Structure linkRANGE CONDITION FOR KEY COLUMN (SUBQ),
Structure linkIN CONDITION FOR KEY COLUMN)

·         Index accesses
(
Structure linkEQUAL CONDITION FOR INDEX,
Structure linkEQUAL CONDITION FOR INDEX (SUBQ),
Structure linkIN CONDITION FOR INDEX)

·         Index range accesses
(
Structure linkRANGE CONDITION FOR INDEX,
Structure linkRANGE CONDITION FOR INDEX (SUBQ),
Structure linkIN CONDITION FOR INDEX)

·         Isolated index accesses
see : Structure linkEXPLAIN Statement: Columns O,D,T,M, column O (Only Index)
and
Index accesses

·         Isolated index range accesses
see : Structure linkEXPLAIN Statement: Columns O,D,T,M, column O (Only Index)
and
Index range accesses

·         Isolated index scans
(Structure linkINDEX SCAN)

User Response

Find the statement that causes this poor ratio of read rows to found rows, and check the access strategies for this statement.

Note

For information on creating optimized SQL statements, see Structure linkOptimizer: SAP DB 7.4.

See also Table scans