System and method for optimizing queries
Abstract
There is provided a computer-implemented method of optimizing a query. An exemplary method comprises receiving a first query configured to generate a result set. The query may comprise an operation for an outer table, a first predicate, and a second predicate. The second predicate may comprise a subquery correlated to the operation. Additionally, the first predicate and the second predicate may be disjunctive. The exemplary method also comprises generating a first query tree representing the first query, and generating a second query tree representing a second query. The second query may be configured to generate the result set, and may not comprise the subquery. The exemplary method additionally comprises generating a query plan based on the second query tree.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 6 · Forward citations: 1.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer-implemented method of optimizing a query, comprising: receiving a first query configured to generate a result set, wherein the first query comprises an operation for an outer table, a first predicate, and a second predicate comprising a subquery correlating an inner table to the outer table, wherein the first predicate and the second predicate are disjunctive, wherein the subquery comprises an operation for the inner table and a correlation predicate correlating the inner table and the outer table, and wherein the second query comprises a left outer join operation between the inner
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (1 of 1 total)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 10,191,943 B2 | Decorrelation of user-defined function invocations in queries | 2019 | 1 |
References Cited — Backward Prior Art (6)
Non-Patent Literature (5)
- Brantner, Matthias, et al., "Unnesting Scalar SQL Queries in the Presence of Disjunction," Proceedings of the 23rd International Conference on Data Engineering, Apr. 15-20, 2007 in Istanbul, Turkey, pp. 46-55.
- Kim, Won, "On Optimizing an SQLike Nested Query," ACM Transactions on Database Systems (TODS), vol. 7 No. 3, pp. 443-469, Sep. 1982, Available at http://dspace.ucalgary.ca/bitstream/1880/46295/2/1988-304-16.pdf (last accessed on Mar. 5, 2010).
- Muralikrishna, M., "Improved Unnesting Algorithms for Join Aggregate SQL Queries," Proceedings of the 18th International Conference on Very Large Data Bases, British Columbia, Canada Aug. 23-27, 1992, pp. 91-102.
- Muralikrishna; "Improved Unnesting Algorithms for Join Aggregate SQL Queries" for Proceedings of the 18th VLDB Conference; 1992; pp. 91-102.
- Steenhagen et al.; "Optimization of Nested Queries in a Complex Object Model" for Proc. of the Int. Conf. on Extending Database Technology (EDBT); 1994; pp. 1-14.