Efficient search space analysis for join factorization
Abstract
Under a type of query transformation referred to herein as join factorization, the branches of an UNION/UNION ALL query that join a common table are combined to reduce accesses to the common table. The transformation can be expressed as (T 1 join T 2 ) union all (T 1 join T 3 )=T 1 join (T 2 union all T 3 ), where T 1 , T 2 and T 3 are three tables. A given query may be rewritten in many alternate ways using join factorization. Evaluating each alternative can be expensive. Therefore, the alternatives are generated and evaluated in a way that minimizes the cost of evaluating the alternatives.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 50 · Forward citations: 7.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer implemented method, comprising transforming a base query that includes a plurality of base branches of a union operator in a base query; and wherein transforming the base query includes: generating a plurality of units that each correspond to a set of base branches of the plurality of base branches; wherein each unit of said plurality of units represents a factorization of a common table set involving a common table joined in each branch of the respective set of base branches; generating a certain plurality of states that conform to one or more criteria, wherein each state of said c
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (7 of 7 total)
References Cited — Backward Prior Art (50)
Non-Patent Literature (5)
- Ahmed, Rafi, et al., "Cost-Based Query Transformation in Oracle," Copyright 2006 VLDB, ACM 1595933859, pp. 1026-1036.
- Bergsten, et al., "Prototyping DBS3 a Shared-Memory Parallel Database System", IEEE 818622954, 226-234, 1991, pp. 226-234.
- Bhide, Anupam, "An Analysis of Three Transaction Processing Architectures", Computer Science Division, UC Berkeley, Proceeding of the 14th VLDB Conference,1998, pp. 339-350.
- Chaudhuri, Surajit, "An Overview of Query Optimization in Relational Systems", Microsoft Research, 1998, 10 pages.
- Chaudhuri, Surajit, et al., "Including Group-By in Query Optimization", Hewlett-Packard Laboratories, 20th VLDB Conference Chile, 1994, 9 pages.