Query expression evaluation using sample based projected selectivity
Abstract
Methods, systems, and computer program products are provided for query expression evaluation for query optimization. Embodiments include receiving a query including a plurality of predicates; creating a truth table representing the possible solutions to the query; identifying a plurality of intersections of the truth table, the plurality of intersections including each predicate of the query; assigning a selectivity factor to each predicate; determining in dependence upon the selectivity factors for each predicate a selectivity rating for each of the intersections of the truth table; selecting one or more of the intersections in dependence upon the selectivity rating; and determining in dependence upon the selected intersections a percentage of rows in a database table returned by the query; and providing the percentage of rows in the database table to an access plan generator for query optimization.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 17 · Forward citations: 5.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for query expression evaluation for query optimization, the method comprising: receiving a query including a plurality of predicates; creating a truth table representing all of the possible solutions to the query; condensing the truth table including identifying a plurality of intersections of the truth table, the plurality of intersections including each predicate of the query; assigning a selectivity factor to each predicate; determining in dependence upon the selectivity factors for each predicate a selectivity rating for each of the intersections of the truth table; selecting one
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (5 of 5 total)
References Cited — Backward Prior Art (17)
Non-Patent Literature (4)
- "Database Systems Query Processing cont'd," http://sky.fit.qut.edu.au/~milliner/itb-n-232/lectures/lect005wk6.ppt, downloaded Nov. 29, 2007, 34 pages.
- "Database Systems Query Processing cont'd," http://sky.fit.qut.edu.au/˜milliner/itb—n—232/lectures/lect005wk6.ppt, downloaded Nov. 29, 2007, 34 pages.
- Claussen et al., "Optimization and Evaluation of Disjunctive Queries," Knowledge and Data Engineering, IEEE Transactions, vol. 12, No. 2, Mar./Apr. 2000, pp. 238-260.
- IBM, "Transformation of a DNF Bit Map to a CNF Bit Map", Ip.com Prior Art Database, Jul. 8, 2004, pp. 1-2, USA.