Lune

SIGMOD2025Top-tier venue

Efficiently Processing Joins and Grouped Aggregations on GPUs

Bowen Wu, Dimitrios Koutsoukos, Gustavo Alonso

Abstract

There is a growing interest in leveraging GPUs for tasks beyond ML, especially in database systems. Despite the existing extensive work on GPU-based database operators, several questions are still open. For instance, the performance of almost all operators suffers from random accesses, which can account for up to 75% of the runtime. In addition, the group-by operator which is widely used in combination with joins, has not been fully explored for GPU acceleration. Furthermore, existing work often uses limited and unrepresentative workloads for evaluation and does not explore the query optimization aspect, i.e., how to choose the most efficient implementation based on the workload. In this paper, we revisit the state-of-the-art GPU-based join and group-by implementations. We identify their inefficiencies and propose several optimizations. We introduce GFTR, a novel technique to reduce random accesses, leading to speedups of up to 2.3x. We further optimize existing hash-based and sort-based group-by implementations, achieving significant speedups (19.4x and 1.7x, respectively). We also present a new partition-based group-by algorithm ideal for high group cardinalities. We analyze the optimizations with cost models, allowing us to predict the speedup. Finally, we conduct a performance evaluation to analyze each implementation. We conclude by providing practical heuristics to guide query optimizers in selecting the most efficient implementation for a given workload.

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.

7 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

  • FaScalSQL: A Fast and Scalable GPU-Accelerated SQL Query Engine for Out-of-Memory Tables cites A Study of the Fundamental Performance Characteristics of GPUs and CPUs for Database Analytics
  • FaScalSQL: A Fast and Scalable GPU-Accelerated SQL Query Engine for Out-of-Memory Tables cites Query Processing on Tensor Computation Runtimes
  • FaScalSQL: A Fast and Scalable GPU-Accelerated SQL Query Engine for Out-of-Memory Tables cites Orchestrating Data Placement and Query Execution in Heterogeneous CPU-GPU DBMS
  • FaScalSQL: A Fast and Scalable GPU-Accelerated SQL Query Engine for Out-of-Memory Tables cites Pump Up the Volume: Processing Large Data on GPUs with Fast Interconnects
  • FaScalSQL: A Fast and Scalable GPU-Accelerated SQL Query Engine for Out-of-Memory Tables cites Terabyte-Scale Analytics in the Blink of an Eye
  • Query Processing on Tensor Computation Runtimes cites A Study of the Fundamental Performance Characteristics of GPUs and CPUs for Database Analytics
  • Query Processing on Tensor Computation Runtimes cites A Tensor Compiler for Unified Machine Learning Prediction Serving
  • Query Processing on Tensor Computation Runtimes cites Pump Up the Volume: Processing Large Data on GPUs with Fast Interconnects
  • GPU Acceleration of SQL Analytics on Compressed Data cites A Study of the Fundamental Performance Characteristics of GPUs and CPUs for Database Analytics
  • GPU Acceleration of SQL Analytics on Compressed Data cites Orchestrating Data Placement and Query Execution in Heterogeneous CPU-GPU DBMS
  • GPU Acceleration of SQL Analytics on Compressed Data cites Pump Up the Volume: Processing Large Data on GPUs with Fast Interconnects
  • Efficiently Joining Large Relations on Multi-GPU Systems cites A Study of the Fundamental Performance Characteristics of GPUs and CPUs for Database Analytics
  • Efficiently Joining Large Relations on Multi-GPU Systems cites Pump Up the Volume: Processing Large Data on GPUs with Fast Interconnects
  • Powerful GPUs or Fast Interconnects: Analyzing Relational Workloads on Modern GPUs cites A Study of the Fundamental Performance Characteristics of GPUs and CPUs for Database Analytics
  • Powerful GPUs or Fast Interconnects: Analyzing Relational Workloads on Modern GPUs cites Query Processing on Tensor Computation Runtimes
  • Powerful GPUs or Fast Interconnects: Analyzing Relational Workloads on Modern GPUs cites Orchestrating Data Placement and Query Execution in Heterogeneous CPU-GPU DBMS
  • Orchestrating Data Placement and Query Execution in Heterogeneous CPU-GPU DBMS cites Pump Up the Volume: Processing Large Data on GPUs with Fast Interconnects
  • Terabyte-Scale Analytics in the Blink of an Eye cites A Study of the Fundamental Performance Characteristics of GPUs and CPUs for Database Analytics
  • Terabyte-Scale Analytics in the Blink of an Eye cites Orchestrating Data Placement and Query Execution in Heterogeneous CPU-GPU DBMS
  • Terabyte-Scale Analytics in the Blink of an Eye cites Pump Up the Volume: Processing Large Data on GPUs with Fast Interconnects
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers7

  1. Terabyte-Scale Analytics in the Blink of an EyeBowen Wu, Wei Cui, Carlo Curino, Matteo Interlandi et al.VLDB 2026 · 10 citations
  2. Powerful GPUs or Fast Interconnects: Analyzing Relational Workloads on Modern GPUsMarko Kabic, Bowen Wu, Jonas Dann, Gustavo AlonsoVLDB 2025 · 7 citations
  3. Efficiently Joining Large Relations on Multi-GPU SystemsTobias Maltenberger, Ilin Tolovski, Tilmann RablVLDB 2025 · 3 citations
  4. GPU Acceleration of SQL Analytics on Compressed DataZezhou Huang, Krystian Sakowski, Hans Lehnert, Wei Cui et al.VLDB 2026 · 1 citation
  5. FaScalSQL: A Fast and Scalable GPU-Accelerated SQL Query Engine for Out-of-Memory TablesChaemin Lim, Suhyun Lee, Jinwoo Choi, Kwanghyun Park et al.ICDE 2026

Builds on14

  1. A Study of the Fundamental Performance Characteristics of GPUs and CPUs for Database AnalyticsAnil Shanbhag, Samuel Madden, Xiangyao YuSIGMOD 2020 · 112 citations
  2. Pump Up the Volume: Processing Large Data on GPUs with Fast InterconnectsClemens Lutz, Sebastian Breß, Steffen Zeuch, Tilmann Rabl et al.SIGMOD 2020 · 99 citations
  3. A Tensor Compiler for Unified Machine Learning Prediction ServingSupun Nakandala, Karla Saur, Gyeong-In Yu, Konstantinos Karanasos et al.OSDI 2020 · 60 citations
  4. Query Processing on Tensor Computation RuntimesDong He, Supun Chathuranga Nakandala, Dalitso Banda, Rathijit Sen et al.VLDB 2022 · 54 citations
  5. Orchestrating Data Placement and Query Execution in Heterogeneous CPU-GPU DBMSBobbi W. Yogatama, Weiwei Gong, Xiangyao YuVLDB 2022 · 45 citations

Related papers

  1. A Case for Graphics-driven Query ProcessingHarish Doraiswamy, Vikas Kalagi, Karthik Ramachandra, Jayant R. HaritsaVLDB 2023 · 4 citations
  2. TCUDB: Accelerating Database with Tensor ProcessorsYu-Ching Hu, Yuliang Li, Hung-Wei TsengSIGMOD 2022 · 32 citations
  3. RayDB: Building Databases with Ray Tracing CoresXuri Shi, Kai Zhang, X. Sean Wang, Xiaodong Zhang et al.VLDB 2026 · 3 citations
  4. Fast Optimal Group Steiner Tree Search using GPUsJiayu Li, Yahui Sun, Bojing Ma, Libang Chen et al.SIGMOD 2026 · 1 citation
  5. Distributed GPU Joins on Fast RDMA-capable NetworksLasse Thostrup, Gloria Doci, Nils Boeschen, Manisha Luthra et al.SIGMOD 2023 · 18 citations
Dusk over the sea between two cliffs drawn in fine vertical lines