Lune

ICDE2024Top-tier venue

Robust External Hash Aggregation in the Solid State Age

Laurens Kuiper, Peter Boncz, Hannes Mühleisen

Abstract

Analytical database systems offer high-performance in-memory aggregation. If there are many unique groups, temporary query intermediates may not fit RAM, requiring the use of external storage. However, switching from an in-memory to an external algorithm can degrade performance sharply.

We revisit external hash aggregation on modern hardware, aiming instead for robust performance that avoids a "performance cliff" when memory runs out.

To achieve this, we introduce two techniques for handling temporary query intermediates. First, we propose unifying the memory management of temporary and persistent data. Second, we propose using a page layout that can be spilled to disk despite being optimized for main memory performance. These two techniques allow operator implementations to process largerthan-memory query intermediates with only minor modifications.

We integrate these into DuckDB's parallel hash aggregation. Experimental results show that our implementation gracefully degrades performance as query intermediates exceed the available memory limit, while main memory performance is competitive with other analytical database systems.

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

  • Quantum Data Management in the NISQ Era cites These Rows Are Made for Sorting and That's Just What We'll Do
  • Saving Private Hash Join cites These Rows Are Made for Sorting and That's Just What We'll Do
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers4

  1. High-Performance Query Processing with NVMe Arrays: Spilling without Killing PerformanceMaximilian Kuschewski, Jana Giceva, Thomas Neumann, Viktor LeisSIGMOD 2025 · 11 citations
  2. Quantum Data Management in the NISQ EraRihan Hai, Shih-Han Hung, Tim Coopmans, Tim Littau et al.VLDB 2025 · 10 citations
  3. Saving Private Hash JoinLaurens Kuiper, Paul Gross, Peter Boncz, Hannes MühleisenVLDB 2025
  4. Global Hash Tables Strike Back! An Analysis of Parallel GROUP BY AggregationDaniel Xue, Ryan MarcusVLDB 2026

Builds on2

  1. Virtual-Memory Assisted Buffer ManagementViktor Leis, Adnan Alhomssi, Tobias Ziegler, Yannick Loeck et al.SIGMOD 2023 · 37 citations
  2. These Rows Are Made for Sorting and That's Just What We'll DoLaurens Kuiper, Hannes MühleisenICDE 2023 · 6 citations

Related papers

  1. Data Chunk Compaction in Vectorized ExecutionYiming Qiao, Huanchen ZhangSIGMOD 2025 · 2 citations
  2. Interactive Analytic DBMSs: Breaching the Scalability WallPedro Pedreira, Amit Dutta, Sergey Pershin, Lin Liu et al.ICDE 2021
  3. Debunking the Myth of Join Ordering: Toward Robust SQL AnalyticsJunyi Zhao, Kai Su, Yifei Yang, Xiangyao Yu et al.SIGMOD 2025 · 13 citations
  4. LiveBin: A Localized and Version-Aware Binned Scan IndexZikang Liu, Linwei Li, Fei Ye, Zhenying He et al.SIGMOD 2026
  5. Incremental Fusion: Unifying Compiled and Vectorized Query ExecutionBenjamin Wagner, André Kohn, Peter Boncz, Viktor LeisICDE 2024 · 3 citations
Dusk over the sea between two cliffs drawn in fine vertical lines