Databases 4 min read

DBLE Slow Query Log – Demonstration and Usage

This tutorial demonstrates how to enable, configure, and analyze DBLE’s slow query log—compatible with MySQL’s mysqldumpslow and Percona’s pt‑query‑digest—by generating sample queries, examining log rotation, and using the tools to inspect performance details, while also providing community resources and course information.

Aikesheng Open Source Community
Aikesheng Open Source Community
Aikesheng Open Source Community
DBLE Slow Query Log – Demonstration and Usage

This is the final lesson of the micro‑course “DBLE Quick Start”, focusing on the slow query log.

DBLE’s slow query log is compatible with MySQL’s mysqldumpslow and Percona’s pt‑query‑digest tools.

The demonstration shows how to check whether the slow query log is enabled via the management console, enable it with an ENABLE statement, and set the threshold (default 100 ms, changed to 1 ms for the demo).

After enabling, a few queries are executed on the traffic port to generate slow‑query entries; a query taking roughly 40 ms is observed, while other frequently used queries return faster.

The generated logs are stored in a “slowlogs” directory, rotated by size and time, and follow the MySQL slow‑log format with additional columns that reflect trace information.

Note: In production, slow logs are collected after real slow queries occur, whereas trace data is used for pre‑analysis.

Using mysqldumpslow (seconds granularity) shows the 40 ms query at the top of the list; Percona’s pt‑query‑digest provides a richer output for deeper analysis.

Community members are invited to join the DBLE QQ group and access additional resources, including GitHub repositories for DBLE and its documentation.

The course series has completed eighteen video and text lessons, with more high‑quality content planned for the future.

LoggingmysqlDatabase Performancept-query-digestDBLESlow Query Log
Aikesheng Open Source Community
Written by

Aikesheng Open Source Community

The Aikesheng Open Source Community provides stable, enterprise‑grade MySQL open‑source tools and services, releases a premium open‑source component each year (1024), and continuously operates and maintains them.

0 followers
Reader feedback

How this landed with the community

login Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.