Online Sketch-based Query Optimization
Yesdaulet Izenov, Asoke Datta, Florin Rusu, Jun Hyung Shin

TL;DR
COMPASS introduces a novel query optimization approach using online, sketch-based statistics that improve plan accuracy and execution speed in in-memory databases by integrating optimization and execution.
Contribution
It presents COMPASS, a new paradigm that leverages Fast-AGMS sketches for online, incremental cardinality estimation during query optimization in in-memory databases.
Findings
COMPASS outperforms four database systems in execution time.
It achieves up to 11.28X speedup in query execution.
Plans generated by COMPASS are more accurate in cardinality estimation.
Abstract
Cost-based query optimization remains a critical task in relational databases even after decades of research and industrial development. Query optimizers rely on a large range of statistical synopses -- including attribute-level histograms and table-level samples -- for accurate cardinality estimation. As the complexity of selection predicates and the number of join predicates increase, two problems arise. First, statistics cannot be incrementally composed to effectively estimate the cost of the sub-plans generated in plan enumeration. Second, small errors are propagated exponentially through join operators, which can lead to severely sub-optimal plans. In this paper, we introduce COMPASS, a novel query optimization paradigm for in-memory databases based on a single type of statistics -- Fast-AGMS sketches. In COMPASS, query optimization and execution are intertwined. Selection…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsData Management and Algorithms · Advanced Database Systems and Queries · Peer-to-Peer Network Technologies
