System and method for segmented evaluation of database queries
AssigneeMicrosoft Corporation
InventorsCesar A. Galindo-Legaria, Goetz Graefe, Milind M. Joshi, Ross T. Bunker
Life of this patent
Estimating the term…
Loading patent…
AssigneeMicrosoft Corporation
InventorsCesar A. Galindo-Legaria, Goetz Graefe, Milind M. Joshi, Ross T. Bunker
Estimating the term…
A method of satisfying a database query includes evaluating certain joins on a per-segment basis. An expression tree is produced for the query, and the expression tree is evaluated to identify joins whose operands are two instances of the same relation and whose join predicate conjunctively includes an equality comparison between two instances of the same column. When such a join is identified, it may be evaluated by segmenting the operand relation according to the columns that are compared for equality in the predicate. The join is then evaluated by performing the join operation separately on each segment. Segments may be spooled separately, thereby exploiting the efficiencies obtained by spooling even where the entire relation is too large to fit in the spool. Execution iterators are provided for spooling successive segments and for applying the join to the spooled segment.
A computer-readable storage medium comprising computer-readable instructions, which when executed on a computer, evaluates an anti-semijoin having a first operand, a second operand, and a predicate, said computer-readable instructions comprising:
A computer-readable storage medium comprising computer-readable instructions, which when executed on a computer, sorts rows of a database table according to a first set of one or more columns, said rows having been sorted on a second set of one or more columns, said computer-readable instructions comprising:
Dependencies are inferred from the claim text.