Invention Grant
US08326824B2 Methods to estimate existing cache contents for better query optimization
有权
估计现有缓存内容以获得更好的查询优化的方法
- Patent Title: Methods to estimate existing cache contents for better query optimization
- Patent Title (中): 估计现有缓存内容以获得更好的查询优化的方法
-
Application No.: US12789496Application Date: 2010-05-28
-
Publication No.: US08326824B2Publication Date: 2012-12-04
- Inventor: Vatsalya Agrawal , Vivek Bhaskar , Saibaba Konduru , Ahmed Shareef
- Applicant: Vatsalya Agrawal , Vivek Bhaskar , Saibaba Konduru , Ahmed Shareef
- Applicant Address: US NY Armonk
- Assignee: International Business Machines Corporation
- Current Assignee: International Business Machines Corporation
- Current Assignee Address: US NY Armonk
- Agency: North Shore Patents, P.C.
- Agent Michele Liu Baillie
- Main IPC: G06G7/00
- IPC: G06G7/00

Abstract:
A method for estimating contents of a cache determines table descriptors referenced by a query, and scans each page header stored in the cache for the table descriptor. If the table descriptor matches any of the referenced table descriptors, a page count value corresponding to the matching referenced table descriptor is increased. Alternatively, a housekeeper thread periodically performs the scan and stores the page count values in a central lookup table accessible by threads during a query run. Alternatively, each thread independently maintains a hash table with page count entries corresponding to table descriptors for each table in the database system. A thread increases or decreases the page count value when copying or removing pages from the cache. A page count value for each referenced table descriptor is determined from a sum of the values in the hash tables. A master thread performs bookkeeping and prevents hash table overflows.
Public/Granted literature
- US20110296108A1 Methods to Estimate Existing Cache Contents for Better Query Optimization Public/Granted day:2011-12-01
Information query