Optimization based method for estimating the results of aggregate queries
AssigneeMicrosoft Corporation
InventorsSurajit Chaudhuri, Vivek Narasayya, Gantam Das
Life of this patent
Estimating the term…
Loading patent…
AssigneeMicrosoft Corporation
InventorsSurajit Chaudhuri, Vivek Narasayya, Gantam Das
Estimating the term…
A method for estimating the result of a query on a database wherein the database has data records arranged in tables and the database has a given workload consisting of queries that have been executed on the database. An expected workload is derived comprising a set of queries that can be executed on the database. A sample of a table is constructed by partitioning the data records into regions based on the queries in the expected workload such that no query in the expected workload selects a proper subset of any region. The estimation error is expressed as a function of a number of records selected per region and a number of records is allocated to each region in a manner that minimizes the estimation error. The query accesses the sample and is executed on the sample, returning an estimated query result. The expected workload can be derived by assigning a probability of occurrence to a query that is based on an amount of similarity between the query and the given workload and compiling a set of queries and their corresponding probability of occurrence.
A method for estimating the result of an aggregation query on a database wherein the database has data records arranged in tables, and wherein the database has a given workload comprising a set of queries that has been executed on the database, the method comprising the steps of:
A method for estimating the result of a query on a database wherein the database has data records arranged in tables, and wherein the database has a given workload comprising a set of queries that has been executed on the database, the method comprising the steps of:
A method for constructing a sample of records in a database table contained in a database having a given workload comprising a set of queries that has been accessed on the database, the method comprising the steps of:
A method for constructing a sample of records in a database table contained in a database having a fixed workload comprising a set of queries that has been executed on the database, the method comprising the steps of:
A method for constructing a model of an expected database workload based on a given workload comprising a set of queries that have been executed on the database, the method comprising the steps of:
A computer readable medium containing computer executable instructions for estimating the result of an aggregation query on a database wherein the database has data records arranged in tables, and wherein the database has a given workload comprising a set of queries that has been executed on the database, the instructions comprising the steps of:
A computer readable medium containing computer executable instructions for constructing a model of an expected database workload based on a given workload comprising a set of queries that have been executed on the database, the instructions comprising the steps of:
An apparatus for estimating the result of an aggregation query on a database wherein the database has data records arranged in tables, and wherein the database has a given workload comprising a set of queries that has been executed on the database, the apparatus comprising:
An apparatus for constructing a model of an expected database workload based on a given workload comprising a set of queries that have been executed on the database, the apparatus comprising:
Dependencies are inferred from the claim text.