- Patent Title: Join-based containment for set operation-based sub query removal
-
Application No.: US17213034Application Date: 2021-03-25
-
Publication No.: US11714810B2Publication Date: 2023-08-01
- Inventor: Rafi Ahmed , Srikanth Bellamkonda
- Applicant: Oracle International Corporation
- Applicant Address: US CA Redwood Shores
- Assignee: Oracle International Corporation
- Current Assignee: Oracle International Corporation
- Current Assignee Address: US CA Redwood Shores
- Agency: Hickman Becker Bingham Ledesma LLP
- Main IPC: G06F16/2453
- IPC: G06F16/2453

Abstract:
Techniques are described herein for subquery removal given two set operation-based subqueries in a query, where one subquery contains the result of the other. The described optimization technique of subquery removal is enabled by join and set operation-based containment of the set operation-based subqueries where semantic equivalence can be established for a given pair of set operation-based subqueries when some table(s)—with associated join condition(s), correlation condition(s), and/or filter predicate(s)—in one subquery are not considered. Subquery removal reduces multiple access to the same table and multiple evaluations of the same join conditions required to evaluate the query. When a subquery is removed from a disjunction, this may lead to other optimizations such as subquery unnesting, e.g., when the original query configuration would not permit query unnesting and the rewritten query (with one or more removed subqueries) permits unnesting.
Public/Granted literature
- US20220309062A1 JOIN-BASED CONTAINMENT FOR SET OPERATION-BASED SUBQUERY REMOVAL Public/Granted day:2022-09-29
Information query