×

Method and apparatus for optimizing a merge-join operation across heterogeneous databases

  • US 5,903,893 A
  • Filed: 09/15/1997
  • Issued: 05/11/1999
  • Est. Priority Date: 09/15/1997
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method for performing an enhanced join operation at a local processor between data from at least two tables, one table stored in a remote database (hereafter "remote table") and a second table stored in a second database (hereafter "local table") in association with said local processor, said method comprising the steps of:

  • a) during a compile time, analyzing (i) a received query, (ii) data relevant to said local table and said remote table and (iii) data entries to be joined from said local table, and providing a recommended predicate to be dispatched to said remote table in response to said received query, a first predicate listing each data value to be accessed from said remote table and a second predicate defining a range of data values to be accessed from said remote table;

    b) during a run time, determining if a count of a number of data values in the local table to be joined with data values in the remote table exceeds or does not exceed a threshold value; and

    (i) if the count exceeds the threshold value and said a second predicate is recommended, employing said second predicate in a query to a database management system (DBMS) which controls the remote table to access a range of data values and associated data therefrom; and

    (ii) if the count does not exceed the threshold value and said first predicate is recommended, employing said first predicate in a query to said DBMS to access a specific list of data values and associated data from said remote table.

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