发明名称 Database system with subquery optimizer
摘要 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.
申请公布号 US5668987(A) 申请公布日期 1997.09.16
申请号 US19950522047 申请日期 1995.08.31
申请人 SYBASE, INC. 发明人 SCHNEIDER, PETER
分类号 G06F12/08;G06F17/30;(IPC1-7):G06F17/30 主分类号 G06F12/08
代理机构 代理人
主权项
地址