Invention Grant
- Patent Title: Optimizing access plan for queries with a nested loop join
-
Application No.: US15465699Application Date: 2017-03-22
-
Publication No.: US11036736B2Publication Date: 2021-06-15
- Inventor: Zhi Tong Dou , Yue Li , Guang Bao N. Ni , Gang Shen , Jing Jing Xiao , Xin Ying Yang
- Applicant: International Business Machines Corporation
- Applicant Address: US NY Armonk
- Assignee: International Business Machines Corporation
- Current Assignee: International Business Machines Corporation
- Current Assignee Address: US NY Armonk
- Agency: Edell, Shapiro & Finnan, LLC
- Agent Richard Wilhelm
- Main IPC: G06F15/16
- IPC: G06F15/16 ; G06F16/2453 ; G06F16/28

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.
Public/Granted literature
- US20180276275A1 OPTIMIZING ACCESS PLAN FOR QUERIES WITH A NESTED LOOP JOIN Public/Granted day:2018-09-27
Information query