All Products
Search
Document Center

Database Autonomy Service:Full request feature

Last Updated:Mar 28, 2026

The full request feature captures every SQL statement executed on your MySQL instance — not just slow queries — giving you a complete picture of database workload. Use it to troubleshoot performance incidents, generate SQL templates for stress testing, and identify the queries that consume the most resources.

Slow query logs only capture queries that exceed a time threshold. This leaves gaps in common scenarios:

  • CPU spike with no slow queries: An alert fires for 100% CPU utilization at 03:00 (UTC+8), but no slow queries are logged at that time. Full request data lets you reconstruct what was running during the spike.

  • Stress testing without SQL templates: Collecting SQL templates and execution frequencies from individual data providers is slow and error-prone. Full request generates SQL templates directly from production traffic.

  • Prioritizing optimization work: Not every slow query is worth optimizing immediately. Full request shows which queries consume the most cumulative resources, so you can focus on the highest-impact ones first.

Prerequisites

Before you begin, ensure that you have:

View full request data

  1. Log on to the DAS console.

  2. In the left-side navigation pane, choose Intelligent O&M Center > SQL Explorer.

    SQL Explorer navigation

  3. Specify a time range to filter the Full Request Trend chart and the Full Request Statistics table.

To export the Full Request Statistics table, click Export. You can export up to 10 million rows at a time.

Understand the data

The SQL Explorer page surfaces full request data across three views:

ViewWhat it showsWhen to use it
Execution Duration Distribution tabDistribution of query execution durations across time, collected every minuteSpot when latency spikes occurred and gauge overall instance health
Full Request Statistics tablePer-SQL breakdown: SQL text, execution duration percentage, average execution duration, and execution trendIdentify which queries consume the most resources and prioritize optimization
SQL Sample tabClient IP address and username for each SQL requestTrace traffic sources and access patterns

Execution Duration Distribution

The chart divides query execution times into these ranges:

RangeDescription
[0,1] ms0 ms to 1 ms
(1,2] msGreater than 1 ms, up to 2 ms
(2,3] msGreater than 2 ms, up to 3 ms
(3,10] msGreater than 3 ms, up to 10 ms
(10,100] msGreater than 10 ms, up to 100 ms
(0.1,1] sGreater than 0.1 s, up to 1 s
> 1sGreater than 1 s

A larger blue area means most queries complete quickly — a healthy sign. Growing orange and red areas indicate that a significant portion of queries are slow, pointing to a performance problem that needs attention.

Example: For the period from 10:40:00 on October 19, 2020 to 10:40:00 on November 19, 2020:

  • 34.30% of queries completed within [0,1] ms

  • 23.13% of queries fell in the (10,100] ms range

  • 25.98% of queries fell in the (0.1,1] s range

Full Request Statistics

The Execution duration percentage column shows how much cumulative MySQL resource time each query pattern consumes:

Execution duration percentage =
  (Execution duration of the SQL statement × Number of executions)
  ÷ (Total execution duration of all SQL statements × Total number of executions)
  × 100%

A high execution duration percentage means the query is a strong optimization candidate — reducing its execution time or execution count will have the largest impact on overall instance performance. Focus on these queries first when planning optimization work.

Click an SQL ID to drill into the performance trend and sample data for that specific query.

SQL templates

Full request groups structurally identical queries into SQL templates by replacing literal values with placeholders. Use SQL templates to:

  • Analyze business traffic patterns without processing millions of individual queries

  • Generate realistic workloads for stress testing before promotional events

  • Plan database capacity based on query distribution

SQL Sample

The SQL Sample tab shows the client IP address and username for each SQL request, giving you visibility into which applications or users are generating specific query patterns.

SQL Sample tab

Execution duration over time

The Execution Duration tab (also referred to as SQL response time) plots query execution durations across the specified time range, making it easier to correlate latency changes with external events.

Execution Duration tab