×

Pushing joins across a union

  • US 10,642,834 B1
  • Filed: 03/30/2017
  • Issued: 05/05/2020
  • Est. Priority Date: 06/17/2008
  • Status: Active Grant
First Claim
Patent Images

1. A computer-implemented method for selecting a join plan for a query containing a plurality of joins and a union block, the computer-implemented method comprising:

  • selecting from among the plurality of joins a subset to consider for pushing across the union block;

    identifying from among the selected joins N joins for which pushing the join across the union block is semantically correct;

    proposing a join plan for all of the plurality of joins without any of the joins being pushed across the union block;

    proposing 2N separate join plans for the plurality of joins, each of the 2N separate join plans comprising a unique combination of pushed joins and unpushed joins; and

    selecting a join plan from among the proposed join plans;

    wherein selecting from among the plurality of joins a subset to consider for pushing across the union block comprises;

    determining that the number of joins in the plurality of joins is too great to propose a join plan for each of the possible alternatives of pushing one of the plurality of joins across the union block or not; and

    in response, applying a set of heuristics to select fewer than all of the plurality of joins to consider for pushing across the union block.

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