Lune

CHI2020Top-tier venue

Debugging Database Queries: A Survey of Tools, Techniques, and Users

Sneha Gathani, Peter Lim, Leilani Battle

Abstract

Database management systems (or DBMSs) have been around for decades, and yet are still difficult to use, particularly when trying to identify and fix errors in user programs (or queries). We seek to understand what methods have been proposed to help people debug database queries, and whether these techniques have ultimately been adopted by DBMSs (and users). We conducted an interdisciplinary review of 112 papers and tools from the database, visualisation and HCI communities. To better understand whether academic and industry approaches are meeting the needs of users, we interviewed 20 database users (and some designers), and found surprising results. In particular, there seems to be a wide gulf between users' debugging strategies and the functionality implemented in existing DBMSs, as well as proposed in the literature. In response, we propose new design guidelines to help system designers to build features that more closely match users debugging strategies.

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.

8 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

Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers8

  1. SWE-SQL: Illuminating LLM Pathways to Solve User SQL Issues in Real-World ApplicationsJinyang Li, Xiaolong Li, Ge Qu, Per Jacobsson et al.NeurIPS 2025 · 15 citations
  2. DIEL: Interactive Visualization Beyond the Here and NowYifan Wu, Remco Chang, Joseph M. Hellerstein, Arvind Satyanarayan et al.IEEE VIS 2021 · 9 citations
  3. QEVIS: Multi-Grained Visualization of Distributed Query ExecutionQiaomu Shen, Zhengxin You, Xiao Yan, Chaozu Zhang et al.IEEE VIS 2023 · 5 citations
  4. VegaProf: Profiling Vega VisualizationsJunran Yang, Alex Bäuerle, Dominik Moritz, Çagatay DemiralpUIST 2023 · 5 citations
  5. Understanding and Supporting Debugging Workflows in CADFelix Hähnlein, Gilbert Bernstein, Adriana SchulzUIST 2024 · 5 citations

Related papers

  1. I-Rex: An Interactive Debugger for SQLYihao Hu, Zian Chen, Zhiming Leong, Sharan Sokhi et al.VLDB 2026
  2. Interactive Text-to-SQL Generation via Editable Step-by-Step ExplanationsYuan Tian, Zheng Zhang, Zheng Ning, Toby Jia-Jun Li et al.EMNLP 2023 · 14 citations
  3. QOVIS: Understanding and Diagnosing Query Optimizer via a Visualization-assisted Approach (Revision)Zhengxin You, Qiaomu Shen, Man Lung Yiu, Bo TangVLDB 2025 · 1 citation
  4. Understanding Query Optimization Bugs in Graph Database SystemsYuyu Chen, Zhongxing YuASPLOS 2026 · 1 citation
  5. SQLucid: Grounding Natural Language Database Queries with Interactive ExplanationsYuan Tian, Jonathan K. Kummerfeld, Toby Jia-Jun Li, Tianyi ZhangUIST 2024 · 13 citations
Dusk over the sea between two cliffs drawn in fine vertical lines