Maintained Symbol Table Only Index
First Claim
1. A method of optimizing a database query, the method comprising:
- analyzing a database query to determine if a predicate structure in the query is a good candidate for a symbol table only data structure;
analyzing the predicate structure to determine if the predicate structure is already encompassed by an encoded vector index; and
generating the symbol table only data structure for at least one column in a database table without generating a corresponding vector data structure from an encoded vector index if the predicate structure is a good candidate and not encompassed by an encoded vector index.
1 Assignment
0 Petitions
Accused Products
Abstract
A method, apparatus and program product is provided for optimizing a database query. A query syntax, system generated predicates, and requisite statistics of the database query are analyzed to determine if a predicate structure is a good candidate for a symbol table only data structure. The predicate structure is analyzed to determine if the predicate structure is already encompassed by an encoded vector index. The symbol table only data structure is generated for at least one column in a database table without generating a corresponding vector data structure from an encoded vector index if the predicate structure is a good candidate and not encompassed by an encoded vector index. The symbol table only data structure is maintained by detecting a change in data associated with the symbol table only data structure and updating the symbol table only data structure to reflect the change in the data.
-
Citations
25 Claims
-
1. A method of optimizing a database query, the method comprising:
-
analyzing a database query to determine if a predicate structure in the query is a good candidate for a symbol table only data structure; analyzing the predicate structure to determine if the predicate structure is already encompassed by an encoded vector index; and generating the symbol table only data structure for at least one column in a database table without generating a corresponding vector data structure from an encoded vector index if the predicate structure is a good candidate and not encompassed by an encoded vector index. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A method of maintaining a symbol table only data structure, the method comprising:
-
detecting a change in data associated with the symbol table only data structure resulting in a change to a first row or a last row or the occurrence count of at least one key value in the symbol table only data structure; and updating the symbol table only data structure to reflect the change to the first row or the last row or occurrence count of the key value. - View Dependent Claims (12, 13, 14, 15, 16, 21)
-
-
17. An apparatus comprising:
-
a processor; and program code configured to be executed by the processor to optimize a database query, the program code configured to analyze a database query to determine if a predicate structure in the query is a good candidate for a symbol table only data structure, analyze the predicate structure to determine if the predicate structure is already encompassed by an encoded vector index, and generate the symbol table only data structure for at least one column in a database table without generating a corresponding vector data structure from an encoded vector index if the predicate structure is a good candidate and not encompassed by an encoded vector index. - View Dependent Claims (18, 19, 20)
-
-
22. A program product, comprising:
-
a computer readable medium; and a program code configured to maintain a symbol table only data structure, the program code resident on the computer readable medium and configured to detect a change in data associated with the symbol table only data structure resulting in a change to a first row or a last row or occurrence count of at least one key value in the symbol table only data structure, and update the symbol table only data structure to reflect the change to the first row or the last row or occurrence count of the key value. - View Dependent Claims (23, 24, 25)
-
Specification