Tag

Slow Query Log

0 views collected around this technical thread.

IT Xianyu
IT Xianyu
Jun 12, 2025 · Databases

Why Mastering MySQL Slow Query Log Is Essential for Performance

This guide explains what the MySQL slow query log is, why it matters for performance, how to check its status, enable it temporarily or permanently in Docker‑based deployments, troubleshoot command‑not‑found errors, read the log file, and filter entries to focus on the truly slow queries.

DockerMySQLSQL Optimization
0 likes · 6 min read
Why Mastering MySQL Slow Query Log Is Essential for Performance
Top Architect
Top Architect
Dec 5, 2024 · Databases

Database Monitoring and Slow Query Log Management Guide

This article explains how database administrators can monitor system resource usage with commands like top, iostat, and vmstat, and configure MySQL slow query logging, including enabling the log, setting thresholds, viewing logs, and applying best‑practice recommendations for analysis and issue resolution.

Database AdministrationLinux CommandsMySQL
0 likes · 8 min read
Database Monitoring and Slow Query Log Management Guide
Aikesheng Open Source Community
Aikesheng Open Source Community
May 23, 2023 · Databases

Understanding MySQL lock_time: How Table and Row Lock Wait Times Are Calculated

This article explains how MySQL's lock_time metric is calculated by summing table‑level and row‑level lock wait times, details the InnoDB implementation, shows source‑code paths and functions involved, and clarifies why lock_time may appear small even when query execution is long.

InnoDBLock TimeMySQL
0 likes · 16 min read
Understanding MySQL lock_time: How Table and Row Lock Wait Times Are Calculated
Aikesheng Open Source Community
Aikesheng Open Source Community
May 16, 2023 · Databases

Analyzing MySQL Slow Query Log Source Code and Debugging SELECT COUNT(*) Issues

This article examines why long‑running SELECT COUNT(*) statements are not recorded in MySQL's slow query log, analyzes the relevant source‑code functions, demonstrates debugging with gdb, identifies the min_examined_row_limit setting as the root cause, and provides practical solutions and bug‑report details.

InnoDBMySQLSlow Query Log
0 likes · 9 min read
Analyzing MySQL Slow Query Log Source Code and Debugging SELECT COUNT(*) Issues
Architecture Digest
Architecture Digest
Nov 23, 2022 · Databases

Using MySQL Built‑in SHOW Commands for Comprehensive Database Monitoring

This article explains how to collect a wide range of MySQL performance metrics—including connections, buffer pool usage, locks, SQL statistics, statement counts, throughput, server variables, and slow‑query logs—using only MySQL's native SHOW commands and performance_schema tables, while also offering practical tuning tips and analysis tools.

Database MonitoringMySQLPerformance Metrics
0 likes · 11 min read
Using MySQL Built‑in SHOW Commands for Comprehensive Database Monitoring
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jun 10, 2021 · Databases

MySQL Optimization: SQL Tuning Steps, Index Usage, and Table Maintenance

This article, the fourth in a MySQL fundamentals series, explains how to diagnose and optimize slow SQL statements using SHOW STATUS, the slow‑query log, SHOW PROCESSLIST, and EXPLAIN, then details index types, creation, usage rules, and how to analyze, check, and optimize tables with MySQL commands.

Database MaintenanceEXPLAINIndexes
0 likes · 22 min read
MySQL Optimization: SQL Tuning Steps, Index Usage, and Table Maintenance
Aikesheng Open Source Community
Aikesheng Open Source Community
Feb 5, 2021 · Databases

Which Is More Accurate: MySQL Binlog Execution Time or Slow Query Log?

The article investigates the discrepancy between MySQL binlog execution time and slow query log duration for an INSERT statement, conducts an experiment with artificial I/O latency, and explains why the slow log provides a more complete measurement of query execution.

DatabaseMySQLSlow Query Log
0 likes · 3 min read
Which Is More Accurate: MySQL Binlog Execution Time or Slow Query Log?
Aikesheng Open Source Community
Aikesheng Open Source Community
Jan 14, 2021 · Databases

How to Enable, Analyze, and Safely Clear MySQL Slow Query Log

This article explains what MySQL's slow query log is, how to configure and read it, and provides step‑by‑step procedures for safely clearing the log in both FILE and TABLE output modes to free disk space and maintain database performance.

MySQLSQL OptimizationSlow Query Log
0 likes · 9 min read
How to Enable, Analyze, and Safely Clear MySQL Slow Query Log
Aikesheng Open Source Community
Aikesheng Open Source Community
Jan 7, 2021 · Databases

Why MySQL Slow Query Log Grows Quickly and How to Control It

The article explains the reasons behind rapid growth of MySQL slow query logs, introduces four key variables that affect logging, describes the decision process for recording queries, and provides practical verification scenarios to help DBAs fine‑tune slow‑log settings.

ConfigurationIndexesMySQL
0 likes · 7 min read
Why MySQL Slow Query Log Grows Quickly and How to Control It
Aikesheng Open Source Community
Aikesheng Open Source Community
Sep 22, 2020 · Databases

Using pt-query-digest to Analyze MySQL Slow Query Logs

This article introduces pt-query-digest from Percona Toolkit, explains how to install the toolkit, configure MySQL slow‑query logging, run pt-query-digest on the slow log, interpret its detailed output, and locate specific SQL statements for performance tuning.

DatabasePercona ToolkitPerformance analysis
0 likes · 15 min read
Using pt-query-digest to Analyze MySQL Slow Query Logs
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Aug 9, 2020 · Databases

MySQL Passive Performance Optimization Principles and Practices

This article explains the principles of MySQL performance optimization, distinguishes active and passive approaches, and provides concrete solutions for slow single queries, partially slow queries, and overall slow queries through proper indexing, data partitioning, slow‑query‑log configuration, and read‑write splitting.

Data PartitioningMySQLRead-Write Splitting
0 likes · 12 min read
MySQL Passive Performance Optimization Principles and Practices
Aikesheng Open Source Community
Aikesheng Open Source Community
Jan 20, 2020 · Databases

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.

DBLEMySQLSlow Query Log
0 likes · 4 min read
DBLE Slow Query Log – Demonstration and Usage
Aikesheng Open Source Community
Aikesheng Open Source Community
Oct 22, 2019 · Databases

Deep Dive into MySQL Slow Query Log: Time, Lock, and Detailed Output Explanation

This article analyzes the MySQL slow query log in Percona 5.7, explaining how timestamps, execution time, lock time, and various log fields are derived from the source code, and clarifies the meaning of each output component for accurate performance debugging.

DatabaseLock TimeMySQL
0 likes · 19 min read
Deep Dive into MySQL Slow Query Log: Time, Lock, and Detailed Output Explanation
Efficient Ops
Efficient Ops
Aug 23, 2018 · Operations

How to Use ELK Stack for Efficient MySQL Slow Query Log Collection

This guide explains how to collect, parse, and visualize MySQL slow query logs using the ELK stack—Filebeat, Logstash, Elasticsearch, and Kibana—covering configuration details, log formatting, and practical querying techniques.

ELKFilebeatKibana
0 likes · 10 min read
How to Use ELK Stack for Efficient MySQL Slow Query Log Collection