Lune

SIGMOD2024Top-tier venue

Convolution and Cross-Correlation of Count Sketches Enables Fast Cardinality Estimation of Multi-Join Queries

Mike Heddes, Igor Nunes, Tony Givargis, Alex Nicolau

Abstract

With the increasing rate of data generated by critical systems, estimating functions on streaming data has become essential. This demand has driven numerous advancements in algorithms designed to efficiently query and analyze one or more data streams while operating under memory constraints. The primary challenge arises from the rapid influx of new items, requiring algorithms that enable efficient incremental processing of streams in order to keep up. A prominent algorithm in this domain is the AMS sketch. Originally developed to estimate the second frequency moment of a data stream, it can also estimate the cardinality of the equi-join between two relations. Since then, two important advancements are the Count sketch, a method which significantly improves upon the sketch update time, and secondly, an extension of the AMS sketch to accommodate multi-join queries. However, combining the strengths of these methods to maintain sketches for multi-join queries while ensuring fast update times is a non-trivial task, and has remained an open problem for decades as highlighted in the existing literature. In this work, we successfully address this problem by introducing a novel sketching method which has fast updates, even for sketches capable of accurately estimating the cardinality of complex multi-join queries. We prove that our estimator is unbiased and has the same error guarantees as the AMS-based method. Our experimental results confirm the significant improvement in update time complexity, resulting in orders of magnitude faster estimates, with equal or better estimation accuracy.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

4 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Sublime: Sublinear Error & Space for Unbounded Skewed Streams cites COMPASS: Online Sketch-based Query Optimization for In-Memory Databases
  • BaCon: Efficient Batch Processing of Counting Queries cites Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluation
  • BaCon: Efficient Batch Processing of Counting Queries cites A Practical Theory of Generalization in Selectivity Learning
  • BaCon: Efficient Batch Processing of Counting Queries cites Data-Agnostic Cardinality Learning from Imperfect Workloads
  • FLAT: Fast, Lightweight and Accurate Method for Cardinality Estimation cites NeuroCard: One Cardinality Estimator for All Tables
  • JoinSketch: A Sketch Algorithm for Accurate and Unbiased Inner-Product Estimation cites COMPASS: Online Sketch-based Query Optimization for In-Memory Databases
  • Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluation cites FLAT: Fast, Lightweight and Accurate Method for Cardinality Estimation
  • Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluation cites NeuroCard: One Cardinality Estimator for All Tables
  • A Practical Theory of Generalization in Selectivity Learning cites NeuroCard: One Cardinality Estimator for All Tables
  • Data-Agnostic Cardinality Learning from Imperfect Workloads cites Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluation
  • Data-Agnostic Cardinality Learning from Imperfect Workloads cites NeuroCard: One Cardinality Estimator for All Tables
  • Data-Agnostic Cardinality Learning from Imperfect Workloads cites A Practical Theory of Generalization in Selectivity Learning
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers4

  1. A Practical Theory of Generalization in Selectivity LearningPeizhi Wu, Haoshu Xu, Ryan Marcus, Zack IvesVLDB 2025 · 2 citations
  2. Data-Agnostic Cardinality Learning from Imperfect WorkloadsPeizhi Wu, Rong Kang, Tieying Zhang, Jianjun Chen et al.VLDB 2025 · 1 citation
  3. Sublime: Sublinear Error & Space for Unbounded Skewed StreamsNavid Eslami, Ioana O. Bercea, Rasmus Pagh, Niv DayanSIGMOD 2026
  4. BaCon: Efficient Batch Processing of Counting QueriesYuxi Liu, Xiao Hu, Pankaj K. Agarwal, Jun YangVLDB 2026

Builds on5

  1. Cardinality Estimation in DBMS: A Comprehensive Benchmark EvaluationYuxing Han, Ziniu Wu, Peizhi Wu, Rong Zhu et al.VLDB 2022 · 169 citations
  2. NeuroCard: One Cardinality Estimator for All TablesZongheng Yang, Amog Kamsetty, Sifei Luan, Eric Liang et al.VLDB 2021 · 138 citations
  3. FLAT: Fast, Lightweight and Accurate Method for Cardinality EstimationRong Zhu, Ziniu Wu, Yuxing Han, Kai Zeng et al.VLDB 2021 · 120 citations
  4. COMPASS: Online Sketch-based Query Optimization for In-Memory DatabasesYesdaulet Izenov, Asoke Datta, Florin Rusu, Jun Hyung ShinSIGMOD 2021 · 34 citations
  5. JoinSketch: A Sketch Algorithm for Accurate and Unbiased Inner-Product EstimationFeiyu Wang, Qizhi Chen, Yuanpeng Li, Tong Yang et al.SIGMOD 2023 · 20 citations

Related papers

  1. Hyper-USS: Answering Subset Query Over Multi-Attribute Data StreamRuijie Miao, Yiyao Zhang, Guanyu Qu, Kaicheng Yang et al.KDD 2023 · 6 citations
  2. Bayesian Sketches for Volume Estimation in Data StreamsFrancesco Da Dalt, Simon Scherrer, Adrian PerrigVLDB 2023 · 5 citations
  3. QSketch: An Efficient Sketch for Weighted Cardinality Estimation in StreamsYiyan Qi, Rundong Li, Pinghui Wang, Yufang Sun et al.KDD 2024 · 3 citations
  4. OmniSketch: Efficient Multi-Dimensional High-Velocity Stream Analytics with Arbitrary PredicatesWieger R. Punter, Odysseas Papapetrou, Minos N. GarofalakisVLDB 2024 · 10 citations
  5. On-Off Sketch: A Fast and Accurate Sketch on PersistenceYinda Zhang, Jinyang Li, Yutian Lei, Tong Yang et al.VLDB 2021 · 63 citations
Dusk over the sea between two cliffs drawn in fine vertical lines