×

SYSTEM, METHOD, AND COMPUTER-READABLE MEDIUM FOR OPTIMIZING PROCESSING OF GROUP-BY QUERIES FEATURING MAXIMUM OR MINIMUM EQUALITY CONDITIONS IN A PARALLEL PROCESSING SYSTEM

  • US 20100332791A1
  • Filed: 06/25/2009
  • Published: 12/30/2010
  • Est. Priority Date: 06/25/2009
  • Status: Abandoned Application
First Claim
Patent Images

1. A method of optimizing processing of a query specifying an equality condition on an attribute of a table in a parallel processing system, comprising:

  • receiving, by a processing module of a plurality of processing modules deployed in the parallel processing system, the query, wherein the processing module has a subset of rows of the table allocated thereto;

    initializing, by the processing module, a hash table including a first field for a selected attribute of the query and at least one second field for the attribute on which the equality condition is applied and a row of the subset of rows;

    identifying, by the processing module, each row of the subset of rows that satisfies the equality condition;

    storing, by the processing module, the selected attribute of each row of the subset of rows identified as satisfying the equality condition in the first field of a respective row of the hash table, and the value of attribute on which the equality condition is applied and the row identified as satisfying the equality condition in the at least one second field of the respective row of the hash table;

    redistributing each row of the hash table to a respective one of the plurality of processing modules based on a hash value of the selected attribute; and

    receiving, by the processing module, a global value of each attribute of the table on which the equality condition is applied that respectively specifies a maximum value of the attribute on which the equality condition is applied for a corresponding selected attribute in the event the equality condition comprises a maximum equality condition and that respectively specifies a minimum value of the attribute on which the equality condition is applied for a corresponding selected attribute in the event the equality condition comprises a minimum equality condition.

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