A <scp>ndromeda</scp> : Debugging Database Performance Issues with Retrieval-Augmented Large Language Models

Debugging performance issues in a database management system (DBMS) is tedious and challenging, even for experienced database administrators (DBAs). Thus, with the rapid advancement of large language models (LLMs), developing an LLM-powered co-pilot to assist or even replace DBAs by automatically diagnosing issues and generating recommendations for resolution presents a promising direction. However, directly prompting LLMs for DBMS performance debugging often yields either generic or irrelevant responses, as LLMs may lack both domain knowledge in performance debugging and a deep understanding of DBMS internals. In this paper, we introduce Andromeda, a retrieval-augmented, LLM-powered system for automatic DBMS performance debugging. Andromeda enables users to pose natural language questions about various performance issues and provides context-aware and actionable recommendations for resolution. To achieve this, Andromeda first retrieves relevant evidence from multiple sources, including historical questions, troubleshooting manuals, DBMS telemetry data, and execution logs. It then leverages effective training strategies to adapt an open-source LLM, empowering it to diagnose and resolve issues based on the retrieved evidence. We have developed a web application for Andromeda and demonstrated its effectiveness in debugging real-world DBMS performance issues.

Authors

Institutions

Publication Details

Published
2025-06-17
DOI
https://doi.org/10.1145/3722212.3725080
Primary Topic
Natural Language Processing Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A ndromeda : Debugging Database Performance Issues with Retrieval-Augmented Large Language Models

Bin Wu, Sibei Chen, P. Wang, Ju Fan et al.
Natural Language Processing Techniques
article

A ndromeda : Debugging Database Performance Issues with Retrieval-Augmented Large Language Models

Bin Wu, Sibei Chen, P. Wang, Ju Fan, Jian Tan, Nan Tang
article en

Abstract

Debugging performance issues in a database management system (DBMS) is tedious and challenging, even for experienced database administrators (DBAs). Thus, with the rapid advancement of large language models (LLMs), developing an LLM-powered co-pilot to assist or even replace DBAs by automatically diagnosing issues and generating recommendations for resolution presents a promising direction. However, directly prompting LLMs for DBMS performance debugging often yields either generic or irrelevant responses, as LLMs may lack both domain knowledge in performance debugging and a deep understanding of DBMS internals. In this paper, we introduce Andromeda, a retrieval-augmented, LLM-powered system for automatic DBMS performance debugging. Andromeda enables users to pose natural language questions about various performance issues and provides context-aware and actionable recommendations for resolution. To achieve this, Andromeda first retrieves relevant evidence from multiple sources, including historical questions, troubleshooting manuals, DBMS telemetry data, and execution logs. It then leverages effective training strategies to adapt an open-source LLM, empowering it to diagnose and resolve issues based on the retrieved evidence. We have developed a web application for Andromeda and demonstrated its effectiveness in debugging real-world DBMS performance issues.

Alibaba Group (United States) (US), Alibaba Group (China) (CN), Renmin University of China (CN), University of Hong Kong (HK)
Quality Education
Openalex Percentile: Top 93%
Natural Language Processing Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.