×

Pruning disk blocks of a clustered table in a relational database management system

  • US 8,996,544 B2
  • Filed: 09/28/2012
  • Issued: 03/31/2015
  • Est. Priority Date: 09/28/2012
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method for pruning contiguous disk blocks of a target table in a relational database management system, the method comprising:

  • dividing the contiguous disk blocks of the target table into a plurality of zones, each zone of the plurality of zones comprising a set of contiguous disk blocks of the target table;

    maintaining, for each zone of the plurality of zones, a minimum column value and a maximum column value for each of one or more zoned columns of one or more tables;

    wherein at least one of the one or more tables is not the target table;

    receiving a query on the target table;

    wherein the query contains a filter predicate on a particular column of the one or more zoned columns;

    wherein the filter predicate has a predicate value;

    in response to receiving the query, determining, based on the predicate value and the minimum column values and the maximum column values maintained for the particular column, one or more zones, of the plurality of zones, that cannot possibly contain rows of the target table satisfying the query;

    determining, based on the one or more zones, of the plurality of zones, that cannot possibly contain rows of the target table satisfying the query, that a disk scan of the one or more zones is not necessary; and

    returning an answer to the query without performing a disk scan of the one or more zones, of the plurality of zones, that cannot possibly contain rows of the target table satisfying the query;

    wherein the method is performed by one or more computing devices.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×