Skip to main navigation Skip to search Skip to main content

Q-Doctor: Retrieval-Augmented Diagnosis and Multi-agent Correction for Query Performance Anomalies

  • East China Normal University

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

The stability and efficiency of database systems are critical to numerous data-intensive applications. However, it remains challenging to keep stable and high query performance, particularly under complex analytical workloads where subtle performance anomalies would cause significant latency and resource inefficiencies. Existing approaches often separate diagnosis from correction—focusing either on detecting execution anomalies or on black-box tuning techniques with limited interpretability and generality. In this paper, we propose Q-Doctor, a Query-level retrieval-augmented framework for Diagnosing and correcting database performance. First, Q-Doctor jointly encodes both query semantics and execution behaviors via a hybrid representation combining graph and tree neural encoders. This representation enables efficient retrieval of similar historical cases, which then guides an informed and fine-grained diagnosis. Moreover, a multi-agent correction module is introduced to collaboratively refine SQL hints and system configurations via reinforcement-guided iterations. Extensive experiments on well-established benchmarks demonstrate that Q-Doctor could accurately identify hidden performance anomalies and significantly improve query performance.

Original languageEnglish
Title of host publicationDatabase Systems for Advanced Applications - 31st International Conference, DASFAA 2026, Proceedings
EditorsHyungsoo Jung, Tianzheng Wang, Masashi Toyoda, Hyuk-Yoon Kwon, Jae-woong Lee
PublisherSpringer Science and Business Media Deutschland GmbH
Pages526-542
Number of pages17
ISBN (Print)9789819203659
DOIs
StatePublished - 2026
Event31st International Conference on Database Systems for Advanced Applications, DASFAA 2026 - Jeju, Korea, Republic of
Duration: 27 Apr 202630 Apr 2026

Publication series

NameLecture Notes in Computer Science
Volume16536 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

Conference31st International Conference on Database Systems for Advanced Applications, DASFAA 2026
Country/TerritoryKorea, Republic of
CityJeju
Period27/04/2630/04/26

Keywords

  • Knob Tuning
  • LLM
  • Query Diagnosis
  • Query Hint
  • RAG

Fingerprint

Dive into the research topics of 'Q-Doctor: Retrieval-Augmented Diagnosis and Multi-agent Correction for Query Performance Anomalies'. Together they form a unique fingerprint.

Cite this