Patents
US 6,493,701 B2#407381 Most CitedExpiredUnited States (USPTO)Utility

Database system with methodogy providing faster N-ary nested loop joins

77Forward Citations (#407381 Global)
3.2/yrCitation Velocity (#766667 Global)
9.05Citation PageRank (#1252018 Global)
6Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

A database system implementing a methodology or technique that can be used to optimize processing of nested loop joins of three or more tables (n-ary NLJs for n>2) more efficiently is described. In implementation, upon encountering a failure condition (i.e., a given join condition does not hold true) from a join operator (scan child), context information (about the failure) is returned (to the n-ary nested-loop join operator) for indicating exactly which condition (i.e., join condition) failed. This information is tracked in a scan descriptor, which includes a “fail sarg” data field indicating exactly which particular search argument (“sarg”) failed. Based on this information, the system (operating through the n-ary nested-loop join operator) knows exactly which scan child to return back to (i.e., how far back to go in the join order to fetch the next row). In this manner, the methodology optimizes processing of n-ary nested loop joins by eliminating comparisons that will not hold true for the corresponding join condition (for which the comparisons were to be tested).

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 6 · Forward citations: 77.

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    In a database system for representing information in database tables and for retrieving information from database tables in response to database queries, each database table comprising data records storing information categorized into one or more database columns, each database column storing information as an attribute having a particular data type, a method for processing a database query specifying a join of three or more tables, the method comprising: in response to receiving a particular database query specifying a join of three or more tables, determining a join order for examining the t

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗

Non-Patent Literature (5)

  • Chen, Ming-Syan et al., On Applying Hash Filters to Improving the Execution of Multi-Join Queries, VLDB Journal 6(2), pp. 121-131, 1997.
  • Dewitt, David J. et al., Nested Loops Revisited, PDIS 1993, pp. 230-242, 1993.
  • Graefe, Goetz et al., Hash Joins and Hash Teams in Microsoft SQL Server, VLDB 1998, pp. 86-97, 1998.
  • O'Neil, Patrick E. et al., Multi-Table Joins Through Bitmapped Join Indices, Sigmod Record 24(3), pp. 8-11, 1995.
  • Roussopoulos, Nick et al., A Pipeline N-way Join Algorithm Based on the 2-way Semijoin Program, IEEE Transactions on Knowledge and Data Engineering, vol. 3, No. 4, Dec. 1991.