Invention Grant
- Patent Title: Reducing temp size over a base table
-
Application No.: US16558727Application Date: 2019-09-03
-
Publication No.: US11023464B2Publication Date: 2021-06-01
- Inventor: Ian Richard Finlay , Calisto Zuzarte , John Frederick Hornibrook
- 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: Schmeiser, Olsen & Watts, LLP
- Agent Stephanie Carusillo
- Main IPC: G06F16/2453
- IPC: G06F16/2453 ; G06F16/22

Abstract:
A method, system and computer program product includes receiving and parsing an SQL query, identifying at least one common sub expression, or sub-query, or combination thereof, used multiple times within the SQL query, constructing for the at least one common sub expression, or sub-query, or combination thereof, a query execution plan that maintains as part of an initial result set a bit vector for a fact table, storing a result bit vector and an indicator that tracks a last valid tuple processed to produce the result bit vector when a TEMP operation is indicated in the query execution plan, reassessing a TEMP result in other portions of the query execution plan, priming a list of tuples using the TEMP result, and retrieving respective columns for further processing in the query execution plan.
Public/Granted literature
- US20210064617A1 REDUCING TEMP SIZE OVER A BASE TABLE Public/Granted day:2021-03-04
Information query