Selectivity prediction with compressed histograms in a parallel processing database system
AssigneeNCR Corporation
InventorKuorong Chiang
Life of this patent
Estimating the term…
Loading patent…
AssigneeNCR Corporation
InventorKuorong Chiang
Estimating the term…
A method, apparatus, and article of manufacture for generating statistics for use by a relational database management system. A global aggregate spool is generated for each of a plurality of partitions of a subject table that are spread across a plurality of processing units of a computer system. Each of the global aggregate spools is scanned to generate summary records. The summary records are then merged to generate interval records for a compressed histogram of the subject table, wherein the compressed histogram includes both equal-height intervals and high-biased intervals. The compressed histogram can then be analyzed to estimate the cardinality associated with one or more search conditions of a user query or other SQL statement. Compared to a strictly equal-height histogram, the compressed histogram allows the relational database management system to more accurately estimate the cardinality associated with various search conditions. As a result, the relational database management system can better optimize the execution of the user query.
A method for generating statics for records stored in a subject table in a computer system, comprising:
An apparatus for generating statistics for records stored in a subject table in a computer system, comprising:
An article of manufacture embodying logic for generating statistics for records stored in a subject table in a computer system, comprising:
Dependencies are inferred from the claim text.