Patent ID: 9268817
Filing Date: 2016-02-23
CPC Classification: G06F

Claim Text:
1. A method comprising: generating two or more different first phase grouping column sets based at least in part on grouping keys that are specified in a first rollup operator of two or more rollup operators that are included in a database query; based on the two or more first phase grouping column sets, generating a plurality of first phase groups of records; wherein generating the plurality of first phase groups of records comprises grouping records into one or more first phase groups of records for each first phase grouping column set of the two or more first phase grouping column sets, after generating the plurality of first phase groups of records, generating a separate first phase rollup result record for each first phase group of records of the plurality of first phase groups of records; generating, in a manner that avoids duplicating any of the first phase grouping column sets, two or more different second phase grouping column sets based at least in part on grouping keys that are specified in a second rollup operator of the two or more rollup operators; based on the two or more second phase grouping column sets, generating a plurality of second phase groups of records; wherein generating the plurality of second phase groups of records comprises grouping first phase rollup result records into one or more separate second phase groups of records for each second phase grouping column set; and after generating the plurality of second phase groups of records, generating a separate second phase rollup result record for each second phase group of records of the plurality of second phase groups of records; wherein the method is performed by one or more computing devices.