首页 > 专利信息

METHOD AND APPARATUS FOR OPTIMIZING DATA RETRIEVAL USING INDEX SCANNING

申请公布号:CA2124094(C)

申请号:CA19942124094

申请日期:1994.05.20

申请公布日期:1999.07.20

发明人:SCHIEFER, BERNHARD;SWAMI, ARUN N.

分类号:G06F17/30;(IPC1-7):G06F17/30

主分类号:G06F17/30

摘要:A method is disclosed for operating a data processing system having a processing unit and physical storage in which data is stored and in which the storage is operably connected to the processing unit for transferring pages of data to the processing unit. The storage contains at least one data base table stored on a plurality of pages, each data base table having a plurality of rows of data, and one or more indexes composed of a sequence of entries which reference the rows. The processing unit has a memory associated with it, a portion of the memory comprising a buffer pool for caching data pages from the table. The method comprises the following steps. Scanning one or more selected indexes and determining the relationship of the number of data transfers required to traverse all or a portion of each selected index for a selected range of buffer pool sizes; and storing a description of the relationship. For a query submitted by a data base user, determining the number of page transfers required to scan a whole table of interest, and for each index of the table relevant to the query, determining the number of page transfers required to scan each the relevant index in accordance with the size of buffer pool made available for the query, as determined from the relationship, scaling down the number of page transfers required in proportion to the selectivity of any starting and stopping conditions present in search criteria in the query, applying a suitable correction factor to the number of page transfers if any of the following conditions are found, very few rows of data remain to be transferred after applying the search criteria, the buffer pool to table size ratio is large, or, an index being used has a low degree of clustering, and accounting for the effect on the number of page transfers by any remaining index sargable search criteria, comparing the number of page transfers required for scanning of the relevant indexes and for scanning the entire table, and selecting a search procedure from the results of said comparison that results in the least number of page transfers.

专利推荐

插秧机秧船及其制作方法

一种隔热节能新材料WO<sub>3</sub>纳米粉体及其制备方法

用于将治疗剂递送到基质中的注射导管

一种绵核桃仁的加工方法

一种聚磷转基因恶臭假单胞工程菌及其构建方法和应用

一种去除循环水中粘泥降低循环水浊度的方法

一种用于治疗急慢性胆囊炎和急慢性胰腺炎的药物组合物

用二维纤维织物制备炭-炭复合材料筒类产品坯体的模具

适于昆虫多姿态和不同爬道爬行的爬附力测量装置与方法

一种用于山羊育肥的浓缩饲料

风力灭火装置

具有二次放电衰减的X射线管

一种不饱和聚酯树脂的废水处理方法

喷射器

泵车稳定性控制系统、控制方法及泵车

半导体装置及半导体存储装置

一种白光LED发光装置

用镁铝碳酸根水滑石催化鲁米诺-过氧化氢化学发光的分析方法

一种基于短路比的直流孤岛送电系统次同步振荡评估方法

应用离子导入治疗慢性盆腔炎的外用中药组合物及制备方法