EXECUTION COST REDUCTION OF SAMPLED QUERIES IN A DATABASE
First Claim
Patent Images
1. A method of establishing a sampled query of tables in a database, the method comprising the steps of:
- a) generating a subset of entries based on a query for data from the tables, the entries representing elements of an index of a larger table from the tables of the query;
b) generating a sampling predicate to reduce the number of entries in the subset, the sampling predicate being obtained from the query;
c) applying the sampling predicate to the subset to reduce the number of entries in the subset; and
d) generating a search of the reduced subset based on the query.
6 Assignments
0 Petitions
Accused Products
Abstract
A method, system and computer program product for reducing the execution cost of sampled queries of tables in a database. A subset of entries comprising row identifiers or key values based on an input query of data in the tables of the database is generated. A sampling predicate to reduce the number of entries in the subset is generated. The sampling predicate is applied to the subset to reduce the number of entries in the subset. The data in the database corresponding to the reduced subset is retrieved from the database.
26 Citations
44 Claims
-
1. A method of establishing a sampled query of tables in a database, the method comprising the steps of:
-
a) generating a subset of entries based on a query for data from the tables, the entries representing elements of an index of a larger table from the tables of the query;
b) generating a sampling predicate to reduce the number of entries in the subset, the sampling predicate being obtained from the query;
c) applying the sampling predicate to the subset to reduce the number of entries in the subset; and
d) generating a search of the reduced subset based on the query. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
-
-
12. For a database management system (DBMS) operatively coupled to a data processing system, a computer program product comprising a computer readable medium containing computer executable code for performing a sampled query of tables in a database, the computer program product comprising:
-
a) code for generating a subset of entries based on a query for data from the tables, the entries representing elements of an index of a larger table from the tables of the query;
b) code for generating a sampling predicate to reduce the number of entries in the subset, the sampling predicate being obtained from the query;
c) code for applying the sampling predicate to the subset to reduce the number of entries in the subset; and
d) code for generating a search of the reduced subset based on the query. - View Dependent Claims (13, 14, 15, 16, 17, 18, 19, 20, 21, 22)
-
-
23. For a database management system (DBMS) operatively coupled to a data processing system, a system for performing a sampled query of tables in a database, the system comprising:
-
a subset generator component for generating a subset of entries based on a query for data from the tables, the entries representing elements of an index of a larger table from the tables of the query;
a predicate module for generating a sampling predicate to reduce the number of entries in the subset, the sampling predicate being obtained from the query; and
a sampling predicate applier component for applying the sampling predicate to the subset to reduce the number of entries in the subset. - View Dependent Claims (24, 25, 26, 27, 28, 29, 30, 31, 32)
-
-
33. For a database management system (DBMS) operatively coupled to a data processing system having memory for storing a database, a method performing a sampled query of tables in a database, the method comprising the steps of:
-
a) receiving a query for data from the tables;
b) generating a subset of entries based on the query for data from the tables, the entries representing elements of an index of a larger table from the tables of the query;
c) generating a sampling predicate to reduce the number of entries in the subset, the sampling predicate being obtained from the query;
d) applying the sampling predicate to the subset to reduce the number of entries in the subset;
e) generating a search of the reduced subset based on the query; and
f) retrieving the data from the database based on the search generated. - View Dependent Claims (34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44)
-
Specification