Techniques for partition pruning based on aggregated zone map information
First Claim
Patent Images
1. A method for pruning partitions based on aggregated zone map information comprising:
- receiving a query statement comprising a filter predicate on a column of a first database table; and
pruning a particular table partition of a second database table from access paths for processing the query statement based on determining, based on aggregated zone map information associated with the particular table partition, that the query statement cannot be satisfied by data stored in the particular table partition, the aggregated zone map information comprising an aggregated minimum value for the column and an aggregated maximum value for the column, the aggregated minimum value being a smallest minimum value for the column among a plurality of minimum values for the column, the aggregated maximum value being a greatest maximum value for the column among a plurality of maximum values for the column, the plurality of minimum values for the column and the plurality of maximum values for the column associated with the column by a zone map on the second database table, the plurality of minimum values for the column and the plurality of maximum values for the column associated with a plurality of zones by the zone map, the plurality of zones comprising the data stored in the particular table partition.
1 Assignment
0 Petitions
Accused Products
Abstract
Techniques for partition pruning based on aggregated zone map information. In one embodiment, for example, a method for pruning partitions based on aggregated zone map information comprises: receiving a query statement comprising a filter predicate on a column of a database table; and pruning one or more partitions of the database table from access paths for processing the query statement based on determining, based on aggregated zone map information associated with the one or more partitions, that the filter predicate cannot be satisfied by data stored in the one or more partitions.
-
Citations
27 Claims
-
1. A method for pruning partitions based on aggregated zone map information comprising:
-
receiving a query statement comprising a filter predicate on a column of a first database table; and pruning a particular table partition of a second database table from access paths for processing the query statement based on determining, based on aggregated zone map information associated with the particular table partition, that the query statement cannot be satisfied by data stored in the particular table partition, the aggregated zone map information comprising an aggregated minimum value for the column and an aggregated maximum value for the column, the aggregated minimum value being a smallest minimum value for the column among a plurality of minimum values for the column, the aggregated maximum value being a greatest maximum value for the column among a plurality of maximum values for the column, the plurality of minimum values for the column and the plurality of maximum values for the column associated with the column by a zone map on the second database table, the plurality of minimum values for the column and the plurality of maximum values for the column associated with a plurality of zones by the zone map, the plurality of zones comprising the data stored in the particular table partition. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A method for pruning partitions comprising:
-
receiving a query statement comprising a filter predicate on a column of a first database table, the filter predicate comprising a value for the column; pruning a particular partition of a second database table from access paths for processing the query statement; wherein the column of the filter predicate is not a column of a partitioning key used for partitioning the second database table; and wherein the particular partition is identified as pruneable based at least on (a) aggregated zone map information associated with the particular partition and (b) the value for the column in the filter predicate. - View Dependent Claims (12, 13)
-
-
14. One or more non-transitory computer-readable media storing instructions which, when executed by one or more computing devices, cause the one or more computing devices to perform operations comprising:
-
receiving a query statement comprising a filter predicate on a column of a first database table; and pruning a particular table partition of a second database table from access paths for processing the query statement based on determining, based on aggregated zone map information associated with the particular table partition, that the query statement cannot be satisfied by data stored in the particular table partition, the aggregated zone map information comprising an aggregated minimum value for the column and an aggregated maximum value for the column, the aggregated minimum value being a smallest minimum value for the column among a plurality of minimum values for the column, the aggregated maximum value being a greatest maximum value for the column among a plurality of maximum values for the column, the plurality of minimum values for the column and the plurality of maximum values for the column associated with the column by a zone map on the second database table, the plurality of minimum values for the column and the plurality of maximum values for the column associated with a plurality of zones by the zone map, the plurality of zones comprising the data stored in the particular table partition. - View Dependent Claims (15, 16, 17, 18, 19, 20, 21, 22)
-
-
23. One or more non-transitory computer-readable media storing instructions which, when executed by one or more computing devices, cause the one or more computing devices to perform operations comprising:
-
receiving a query statement comprising a filter predicate on a column of a first database table, the filter predicate comprising a value for the column; pruning a particular partition of a second database table from access paths for processing the query statement; wherein the column of the filter predicate is not a column of a partitioning key used for partitioning the second database table; and wherein the particular partition is identified as pruneable based at least on (a) aggregated zone map information associated with the particular partition and (b) the value for the column in the filter predicate. - View Dependent Claims (24, 25)
-
-
26. A system for pruning partitions based on aggregated zone map information, the system comprising:
-
a computer having at least a processor and memory; a query engine for receiving a query statement comprising a filter predicate on a column of a database table; and a query engine optimizer module for pruning one or more partitions associated with a database table from access paths for processing the query statement based on determining, based on aggregated zone map information associated with the particular table partition, that the query statement cannot be satisfied by data stored in the particular table partition, the aggregated zone map information comprising an aggregated minimum value for the column and an aggregated maximum value for the column, the aggregated minimum value being a smallest minimum value for the column among a plurality of minimum values for the column, the aggregated maximum value being a greatest maximum value for the column among a plurality of maximum values for the column, the plurality of minimum values for the column and the plurality of maximum values for the column associated with the column by a zone map on the second database table, the plurality of minimum values for the column and the plurality of maximum values for the column associated with a plurality of zones by the zone map, the plurality of zones comprising the data stored in the particular table partition.
-
-
27. A system for pruning partitions, the system comprising:
-
a computer having at least a processor and memory; a query engine for receiving a query statement comprising a filter predicate on a column of a first database table, the filter predicate comprising a value for the column; a query engine optimizer module for pruning partitions of a second database table from access paths for processing the query statement based at least on the value for the column in the filter predicate; wherein the column of the filter predicate is not a column of a partitioning key used for partitioning the second database table; and wherein the partitions of the second database table are identified as pruneable based at least on (a) aggregated zone map information associated with the partitions and (b) the value for the column in the filter predicate.
-
Specification