Optimizing access plan for queries with a nested loop join
Abstract
A method, computing system and computer program product are provided. A nested loop join access plan for a query is executed and processed records of a most outer table of a nested loop join that satisfy local predicates are counted. When a count of the processed records is not less than a threshold value, a cost to complete execution of the nested loop join access plan and a cost of executing a new access plan based on recalculated filter factors for local predicates of the query are compared. When the cost to complete is less, execution of the nested loop join access plan is resumed to complete running of the query. When the cost of executing the new access plan is less, the new access plan is executed to rerun the query. A result of the query is provided.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 14 · Forward citations: 0.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A machine-implemented method to optimize an access plan, which includes a nested loop join, for a query in a relational database management system, the method comprising: executing, by a computing system, a nested loop join access plan selected by a query optimizer for a query, the executing including counting a number of records processed from records of a most outer table of the nested loop join that satisfy local predicates of the most outer table; when the number of records processed from the most outer table is not less than a threshold value, performing: suspending, by the computing syst
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (14)
Non-Patent Literature (3)
- Kabra et al., “Efficient Mid-Query Re-Optimization of Sub-Optimal Query Execution Plans”, SIGMOD '98, ACM 1998, pp. 106-117.
- Liu et al., “Research on the Query Performance Optimization Based on the DB2 UDB”, International Conference on Network and Finance Development, NFD 2010, Scientific Research, 2010, pp. 185-188.
- Navin Kabra, David J. Dewitt, “Efficient Mid-Query Re-Optimization of Sub-Optimal Query Execution Plans” (Year: 1998).