Database system with subquery optimizer
AssigneeSybase, Inc.
InventorPeter Schneider
Life of this patent
Estimating the term…
Loading patent…
AssigneeSybase, Inc.
InventorPeter Schneider
Estimating the term…
Database system and methods are described for improving execution speed of database queries (e.g., for decision support) by optimizing execution of nested queries or "subqueries," such as are commonly used in client/server database environments. In particular, a subquery cache is provided having a size which can be dynamically adjusted by the system during execution of the query, for achieving an optimal cache size. During execution of the subquery, the system keeps statistics on cache "hits" and "misses." Specifically, the system stores a count of the number of times a row is found in the cache (i.e., a "hit") as well as a count of the number of times a scan of the cache yields no "hit" (i.e., a "miss"). Also, a maximum LRU (least-recently used) depth of the deepest hit in the cache is also tracked. This tracks how deep (i.e., the deepest row) into the cache there has been a "hit." Based on the tracking of these cache statistics, the system of the present invention can dynamically adjust subquery cache size to an optimal size at execution time based on actual data encountered during execution of the query.
In a computer system having a processor, a memory, and a storage device, said storage device storing a database comprising rows of data records, each data record storing information in database columns, a method for executing a database query for selecting particular ones of said data records, the method comprising:
In a computer system having a processor, a memory, and a storage device, said storage device storing a database comprising rows of data records, each data record storing information in database columns, a method for executing a database query for selecting particular ones of said data records, the method comprising:
In a computer system having a processor, a memory, and a storage device, said storage device storing a database comprising rows of data records, each data record storing information in database columns, a method for executing a database query for selecting particular ones of said data records, the method comprising:
In a database system comprising a processor, a memory, and a storage device, said storage device storing a database comprising rows of data records, each data record storing information in database columns, an improved query execution unit comprising:
In a computer system having a processor, a memory, and a storage device, said storage device storing a database comprising rows of data records, each data record storing information in database columns, a method for executing a database query for selecting particular ones of said data records, the method comprising:
In a client/server database system, an improved method for executing a database query submitted by a client to a database server, said database query including a subquery, the method comprising:
Dependencies are inferred from the claim text.