×

Method, system, and program for optimizing aggregate processing

  • US 7,243,098 B2
  • Filed: 12/19/2002
  • Issued: 07/10/2007
  • Est. Priority Date: 12/19/2002
  • Status: Expired due to Fees
First Claim
Patent Images

1. A computer-implemented method for processing an aggregate function, comprising:

  • if a first argument of the aggregate function is a nested function,generating a composite structure that includes a tagging template for the nested function; and

    generating an intermediate result structure for each row to be processed by the aggregate function, wherein each intermediate result structure references the tagging template;

    grouping rows that contain a reference to intermediate result structures to form groups, wherein each of the intermediate result structures holds intermediate results including argument input values to represent different levels of nested functions; and

    for each group,forming aggregate element structures in memory from the intermediate result structures; and

    if the aggregate function specifies ordering, sorting the aggregate element structures based on a sort key in memory.

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