An encoded vector index symbol table scan operation is used to retrieve the entries from the symbol table portion of the index.
All entries (symbols) in the symbol table will be sequentially scanned, though the sequence of the resulting entries is not in any guaranteed order. The symbol table can be used by the optimizer to satisfy group by or distinct portions of a query request. Any selection is applied to every entry in the symbol table. All entries are retrieved directly from the symbol table portion of the index without any access to the vector portion of the index nor any access to the records in the associated table over which the EVI is built.
Data access method | Encoded vector index symbol table scan |
---|---|
Description | Sequentially scan and process all of the symbol table entries associated with the index. Any selection is applied to every entry in the symbol table. Selected entries are retrieved directly without any access to the vector or the associated table |
Advantages |
|
Considerations | Dramatic performance improvement for grouping queries where the resulting number of groups is relatively small compared to the number of records in the underlying table. Can perform poorly when there are a large number of groups involved such that the symbol table is very large, especially if a large portion of symbol table has been put into the overflow area. |
Likely to be used |
|
Example SQL statement | CREATE ENCODED VECTOR INDEX EVI1 ON Sales (Region)Example 1 SELECT Region, count(*) FROM Sales GROUP BY Region OPTIMIZE FOR ALL ROWSExample 2 SELECT DISTINCT Region FROM Sales OPTIMIZE FOR ALL ROWSExample 3 SELECT COUNT(DISTINCT Region) FROM Sales |
Messages indicating use |
|
SMP parallel enabled | No. Typically not critical as the 'grouping' has already been performed during the index build. |
Also referred to as | Encoded Vector Index table scan, Preload |
Visual Explain icon |