Method and apparatus for analyzing data retrieval using index scanning
First Claim
1. A method for data retrieval using index scanning in a database management system, the database management system including a processing unit operably coupled to physical storage for storing data, the physical storage containing at least one database table stored in a plurality of pages, each database table having a plurality of rows, and one or more indexes composed of a sequence of entries referencing the rows, and the processing unit having a buffer pool for caching data pages from the database table, said method comprising the steps of:
- (a) ranking selected entries of an index;
(b) determining a distance parameter for each of said ranked index entries, wherein said distance parameter is derived from the relationship between said index and an index of lesser rank;
(c) determining the number of consecutive index entries that can be stored in the buffer pool; and
(d) estimating the number of page transfers based on the distance parameters and the number of consecutive index entries.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and computer program product for analyzing data retrieval using index scanning in a database management system. The method involves scanning an index associated with a table in the database management system and selecting pages in the index. For each of the selected pages, the index entries are extracted and ranked. A distance parameter is then determined for each of the ranked index entries. The number of page transfers is estimated based on the distance parameters and the number of consecutive index entries which can be stored in the buffer pool.
-
Citations
22 Claims
-
1. A method for data retrieval using index scanning in a database management system, the database management system including a processing unit operably coupled to physical storage for storing data, the physical storage containing at least one database table stored in a plurality of pages, each database table having a plurality of rows, and one or more indexes composed of a sequence of entries referencing the rows, and the processing unit having a buffer pool for caching data pages from the database table, said method comprising the steps of:
-
(a) ranking selected entries of an index;
(b) determining a distance parameter for each of said ranked index entries, wherein said distance parameter is derived from the relationship between said index and an index of lesser rank;
(c) determining the number of consecutive index entries that can be stored in the buffer pool; and
(d) estimating the number of page transfers based on the distance parameters and the number of consecutive index entries. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A computer program product for use on a computer for data retrieval using index scanning in a database management system, the database management system including a processing unit operably coupled to physical storage for storing data, the physical storage containing at least one database table stored in a plurality of pages, each database table having a plurality of rows, and one or more indexes composed of a sequence of entries referencing the rows, and the processing unit having a buffer pool for caching data pages from the database table, said computer program product comprising:
-
a recording medium;
means recorded on said medium for instructing said computer to perform the steps of, (a) ranking selected entries of an index;
(b) determining a distance parameter for each of said ranked index entries, wherein said distance parameter is derived from the relationship between said index and an index of lesser rank;
(c) determining the number of consecutive index entries that can be stored in the buffer pool; and
(d) estimating the number of page transfers based on the distance parameters and the number of consecutive index entries. - View Dependent Claims (7, 8, 9, 10)
-
-
11. A computer program product for use on a computer for data retrieval using index scanning in a database management system, the database management system including a processing unit operably coupled to physical storage for storing data, the physical storage containing at least one database table stored in a plurality of pages, each database table having a plurality of rows, and one or more indexes composed of a sequence of entries referencing the rows, and the processing unit having a buffer pool for caching data pages from the database table, said computer program product comprising:
-
a recording medium;
means recorded on said medium for instructing said computer to perform the steps of, (a) ranking selected entries of an index;
(b) selecting pages for the database table according to a sampling criterion and storing respective page numbers for said selected pages;
(c) determining a distance parameter for each of said ranked index entries associated with said page numbers, wherein said distance parameter is derived from the relationship between said index and an index entry of lesser rank;
(d) determining the number of consecutive index entries that can be stored in the buffer pool;
(e) estimating the number of page transfers based on the distance parameters and the number of consecutive index entries. - View Dependent Claims (12)
-
-
13. A relational database management system for use with a computer system wherein queries are entered by a user for retrieving data from tables, the relational database management system including a processing unit operably coupled to physical storage for storing data, the physical storage containing at least one database table stored in a plurality of pages, each database table having a plurality of rows, and one or more indexes composed of a sequence of entries referencing the rows, and the processing unit a buffer pool for caching data pages from the database table, said relational database management system comprising:
-
(a) means for ranking selected entries of an index;
(b) means for determining a distance parameter for each of said ranked index entries, wherein said distance parameter is derived from the relationship between said index and an index entry of lesser rank;
(c) means for determining the number of consecutive index entries that can be stored in the buffer pool; and
(d) means for estimating the number of page transfers based on the distance parameters and the number of consecutive index entries. - View Dependent Claims (14, 15, 16, 17)
-
-
18. Data storage media recorded with a computer program which, in combination with a general purpose computer configured for a database management system and equipped to read into memory and execute program data from the data storage media, the program data for:
-
(a) ranking selected entries of an index;
(b) determining a distance parameter for each of said ranked index entries, wherein said distance parameter is derived from the relationship between said index and an index of lesser rank;
(c) determining the number of consecutive index entries that can be stored in the buffer pool; and
(d) estimating the number of page transfers based on the distance parameters and the number of consecutive index entries. - View Dependent Claims (19, 20, 21, 22)
-
Specification