Tagged articles
142 articles
Page 2 of 2
Big Data Technology Architecture
Big Data Technology Architecture
Nov 3, 2020 · Big Data

Performance Optimization of Apache Kylin at Beike: HBase Tuning, Region Management, and Slow‑Query Mitigation

This article details how Beike's engineering team scaled Apache Kylin to handle tens of millions of daily queries by optimizing HBase configurations, reducing region count, improving data locality, addressing IO and JVM GC bottlenecks, and implementing comprehensive slow‑query detection and active‑defense mechanisms.

Apache KylinHBaseJVM GC
0 likes · 15 min read
Performance Optimization of Apache Kylin at Beike: HBase Tuning, Region Management, and Slow‑Query Mitigation
Programmer DD
Programmer DD
Nov 3, 2020 · Databases

Why Using Indexes Doesn’t Guarantee Fast Queries – MySQL Index Deep Dive

This article explains why a MySQL query that uses an index can still become a slow query, explores the difference between index usage and execution time, and presents practical optimization techniques such as improving selectivity, reducing back‑table lookups, using index condition push‑down, and leveraging virtual columns.

Virtual Columnsdatabaseindexes
0 likes · 13 min read
Why Using Indexes Doesn’t Guarantee Fast Queries – MySQL Index Deep Dive
Architect
Architect
Oct 11, 2020 · Databases

Understanding Index Usage, Slow Queries, and Optimization Techniques in MySQL

This article explains why using indexes does not guarantee fast queries, analyzes slow‑query causes such as full index scans and poor filter selectivity, and demonstrates advanced MySQL optimizations including virtual columns and index condition push‑down to reduce row scans and costly table lookups.

databaseindexmysql
0 likes · 12 min read
Understanding Index Usage, Slow Queries, and Optimization Techniques in MySQL
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Sep 26, 2020 · Databases

Why Indexes Still Lead to Slow Queries: A MySQL Deep Dive

This article explains why using an index does not guarantee fast MySQL queries, examines how execution time, index selectivity, full index scans, and costly back‑to‑table lookups affect slow‑query logs, and presents practical optimization techniques such as virtual columns and index condition push‑down.

InnoDBindexmysql
0 likes · 13 min read
Why Indexes Still Lead to Slow Queries: A MySQL Deep Dive
dbaplus Community
dbaplus Community
Aug 19, 2020 · Databases

Why MySQL Chose the Wrong Index and How to Fix It

A production MySQL query that should have returned instantly took 44 seconds because the optimizer selected the primary key index instead of a suitable composite index, and the article explains the root cause, the optimizer's decision process, and multiple practical solutions to prevent such slow‑query incidents.

Database OptimizationFORCE INDEXIndex Selection
0 likes · 15 min read
Why MySQL Chose the Wrong Index and How to Fix It
Top Architect
Top Architect
Aug 13, 2020 · Databases

Understanding Index Usage and Slow Queries in MySQL

This article explains why using indexes does not guarantee fast queries in MySQL, analyzes full index scans, index selectivity, the cost of row look‑ups (back‑to‑table), and presents optimization techniques such as index condition pushdown and virtual columns to improve performance.

Database Optimizationindexmysql
0 likes · 13 min read
Understanding Index Usage and Slow Queries in MySQL
ITPUB
ITPUB
Jul 15, 2020 · Databases

Master MySQL Performance: Indexes, EXPLAIN, and Slow‑Query Optimization

This guide compiles essential MySQL optimization techniques—including index cardinality, function indexes, EXPLAIN usage, covering indexes, ICP, slow‑query log analysis, online schema changes, and common SQL pitfalls—to help developers efficiently tune database performance.

Database OptimizationSQLexplain
0 likes · 19 min read
Master MySQL Performance: Indexes, EXPLAIN, and Slow‑Query Optimization
Java Backend Technology
Java Backend Technology
Jul 7, 2020 · Databases

Why Your SQL Queries Are Slow: 10 Hidden Factors and How to Fix Them

This article analyzes the various system‑level and database‑level reasons why SELECT, UPDATE, INSERT, or DELETE statements become slow, covering network issues, OS and hardware constraints, MySQL configuration, indexing, execution plans, and query design, and offers practical mitigation strategies.

SQLdatabasemysql
0 likes · 18 min read
Why Your SQL Queries Are Slow: 10 Hidden Factors and How to Fix Them
Java Backend Technology
Java Backend Technology
Apr 20, 2020 · Databases

Why Indexes Can Still Cause Slow Queries and How to Optimize Them

This article explains why using indexes does not guarantee fast queries, explores the relationship between index usage and slow‑query logs, and presents practical MySQL optimization techniques such as improving index selectivity, reducing table‑lookup costs, and leveraging virtual columns.

Index Optimizationmysqlslow-query
0 likes · 14 min read
Why Indexes Can Still Cause Slow Queries and How to Optimize Them
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Mar 29, 2020 · Databases

How to Locate and Analyze Slow SQL Queries in MySQL

This article explains how to identify slow MySQL queries using the slow‑query log and SHOW PROCESSLIST, configure logging parameters, and analyze query performance with EXPLAIN, covering key output fields, common values, and practical code examples for effective SQL optimization.

Database PerformanceSQL Optimizationexplain
0 likes · 14 min read
How to Locate and Analyze Slow SQL Queries in MySQL
Efficient Ops
Efficient Ops
Feb 9, 2020 · Databases

Why a MySQL Query Took 30 Seconds and How a Hidden Index Cut It to 0.2 s

A production MySQL query on a table with five million rows took over 30 seconds, and after reproducing the issue, examining execution plans, trying various index and query tweaks, discovering that SQLyog adds a hidden LIMIT, and finally forcing the correct index, the runtime dropped to under a second, illustrating the importance of proper index usage and tool‑specific quirks.

Index OptimizationSQLyogexecution plan
0 likes · 6 min read
Why a MySQL Query Took 30 Seconds and How a Hidden Index Cut It to 0.2 s
Java Captain
Java Captain
Jan 26, 2020 · Databases

MySQL Slow Query Optimization: Reducing Execution Time from 30 Seconds to 0.19 Seconds

This article documents a MySQL slow‑query case where a 5‑million‑row table took over 30 seconds to run a GROUP BY query, explores several ineffective optimization attempts, reveals a client‑side limit issue, and finally solves the problem by forcing the correct index, cutting the runtime to under 0.2 seconds.

Index Optimizationdistinct vs group byexecution plan
0 likes · 5 min read
MySQL Slow Query Optimization: Reducing Execution Time from 30 Seconds to 0.19 Seconds
Architecture Digest
Architecture Digest
Jan 13, 2020 · Databases

Understanding Index Usage and Slow Queries in MySQL

This article explains why using an index does not guarantee a fast query in MySQL, analyzes how slow‑query detection works, demonstrates full‑index scans, discusses index selectivity, the cost of row‑lookup (back‑table) operations, and shows how virtual columns and index condition push‑down can improve performance.

indexesmysqlquery optimization
0 likes · 12 min read
Understanding Index Usage and Slow Queries in MySQL
Aikesheng Open Source Community
Aikesheng Open Source Community
Dec 11, 2019 · Databases

MySQL CPU Saturation Case Study: Analyzing and Optimizing a Slow ORDER BY Query

This article examines a MySQL instance that hit 100% CPU at 9 am on 2019‑01‑11, identifies the offending ORDER BY query through slow‑log and EXPLAIN analysis, and demonstrates how adding a composite index and correcting implicit type conversions reduced execution time from over 10 seconds to milliseconds.

Index Optimizationmysqlperformance tuning
0 likes · 7 min read
MySQL CPU Saturation Case Study: Analyzing and Optimizing a Slow ORDER BY Query
Efficient Ops
Efficient Ops
Oct 27, 2019 · Operations

Why Did My MongoDB Logs Turn Into PCX Images? Investigation and Fix

A MongoDB shard node’s logs unexpectedly turned into PCX image files due to improper log rotation using echo, causing CPU spikes and slow‑query analysis failures; the investigation reproduces the issue, explains the header corruption, and presents a SIGUSR1‑based solution to restore proper ASCII logs and retrieve the needed time‑range data.

MongoDBPCXSIGUSR1
0 likes · 18 min read
Why Did My MongoDB Logs Turn Into PCX Images? Investigation and Fix
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Oct 12, 2019 · Databases

How to Locate and Analyze Slow SQL Queries in MySQL

This article explains how to identify slow MySQL queries using the slow‑query log and SHOW PROCESSLIST, then demonstrates how to analyze their execution plans with EXPLAIN, covering key fields, common values, and practical examples for effective performance optimization.

Performance Optimizationdatabasemysql
0 likes · 13 min read
How to Locate and Analyze Slow SQL Queries in MySQL
Architect's Tech Stack
Architect's Tech Stack
Sep 3, 2019 · Databases

Practical MySQL Slow Query Optimization: Case Studies and Techniques

This article presents a step‑by‑step analysis of several real‑world MySQL slow‑query problems, demonstrates how to reproduce the issues, examines execution plans, applies concrete optimizations such as removing function calls, adjusting date comparisons, adding bigint indexes, and explains the impact of different EXPLAIN types on performance.

SQLdatabase indexingexplain
0 likes · 12 min read
Practical MySQL Slow Query Optimization: Case Studies and Techniques
Programmer DD
Programmer DD
Jun 6, 2019 · Databases

Why Your SQL Queries Are Slow: 15 Real‑World Causes & Fixes

This article examines a wide range of factors that can cause MySQL queries to run slowly—including network latency, OS and hardware bottlenecks, storage I/O scheduling, CPU power settings, RAID cache behavior, index design, implicit type conversion, execution plan errors, large data volumes, metadata locks, concurrent row updates, data skew, inefficient pagination, table schema choices, InnoDB dirty‑page flushing, and undo log retention—offering concrete examples and mitigation strategies for each scenario.

SQLmysqlslow-query
0 likes · 19 min read
Why Your SQL Queries Are Slow: 15 Real‑World Causes & Fixes
Youzan Coder
Youzan Coder
May 15, 2019 · Databases

Why a Simple SELECT LIMIT 1 Can Be Terribly Slow in MySQL InnoDB

A detailed investigation reveals that a seemingly trivial SELECT * FROM sbtest1 LIMIT 1 becomes slow due to InnoDB's MVCC visibility checks, a growing History List length, and a large number of deleted rows that must be scanned before a visible row is found.

InnoDBMVCCmysql
0 likes · 12 min read
Why a Simple SELECT LIMIT 1 Can Be Terribly Slow in MySQL InnoDB
58 Tech
58 Tech
Apr 11, 2019 · Databases

Analyzing Slow Query Issues Caused by PHP PDO Prepare Behavior

This article investigates why slow‑query logs show numerous slow queries without visible SQL statements, reproduces the problem using MySQL client, Perl and PHP simulations, compares local (emulated) and server‑side PDO prepare modes, and provides practical recommendations for configuring prepared statements to avoid hidden performance bottlenecks.

Database PerformancePDOPrepared Statements
0 likes · 7 min read
Analyzing Slow Query Issues Caused by PHP PDO Prepare Behavior
Tencent Cloud Developer
Tencent Cloud Developer
Mar 7, 2019 · Databases

How to Address High CPU Load on a Single MySQL Core

To resolve a MySQL single‑core CPU bottleneck, examine and tune slow queries and indexes, eliminate heavy lock contention, break large transactions into smaller ones, and employ tools like perf top to pinpoint performance hotspots, as recommended by Tencent Cloud Database expert Liu Di.

CPU optimizationDatabase PerformancePerf tool
0 likes · 3 min read
How to Address High CPU Load on a Single MySQL Core
dbaplus Community
dbaplus Community
Nov 19, 2017 · Databases

Why MySQL Throws ‘Too Many Connections’ and How to Fix It

This article explains the root causes of MySQL’s “Too many connections” error—including max_connections limits, sleep connections, and slow queries—provides detailed parameter descriptions, shares real‑world troubleshooting cases, and offers practical solutions such as killing idle sessions, adjusting wait_timeout, and tuning InnoDB concurrency settings.

Too many connectionsmax_connectionsmysql
0 likes · 8 min read
Why MySQL Throws ‘Too Many Connections’ and How to Fix It
21CTO
21CTO
Nov 18, 2017 · Databases

Boost MySQL Performance: Config Tweaks, Index Strategies, and Essential Tools

This article walks through practical MySQL optimization techniques—including configuration file tuning, key InnoDB parameters, effective index design, and the use of Percona and MySQL Tuner tools—to help you speed up queries and eliminate performance bottlenecks in production environments.

ConfigurationIndex Optimizationmysql
0 likes · 17 min read
Boost MySQL Performance: Config Tweaks, Index Strategies, and Essential Tools
Programmer DD
Programmer DD
Sep 19, 2017 · Databases

Why MySQL Ignored My Index and How to Speed Up Periodic Deletions

The article investigates why a seemingly indexed MySQL DELETE query still performs a full‑table scan, analyzes execution plans and statistics, demonstrates forcing the index, and finally rewrites the query to limit the date range, achieving a much faster operation.

Database PerformanceIndex OptimizationSQL
0 likes · 7 min read
Why MySQL Ignored My Index and How to Speed Up Periodic Deletions
21CTO
21CTO
Aug 14, 2017 · Databases

Master MySQL Performance: Using EXPLAIN, Indexes, and Slow Query Analysis

This guide explains how to analyze MySQL performance with EXPLAIN statements, composite indexes, slow‑query logging, storage engine locking differences, and transaction settings, providing practical examples and detailed descriptions of each EXPLAIN output column.

Database Optimizationexplainindexes
0 likes · 7 min read
Master MySQL Performance: Using EXPLAIN, Indexes, and Slow Query Analysis
Java Backend Technology
Java Backend Technology
Jul 24, 2017 · Databases

Master MySQL Log Files: Error, Slow Query, and Binlog Management Guide

This article explains MySQL’s various log files—including error log, slow query log, binary log and general query log—detailing how to locate, configure, view, and analyze them using MySQL commands, and how to adjust settings such as long_query_time and log_output for optimal performance.

Database AdministrationLog Fileserror log
0 likes · 5 min read
Master MySQL Log Files: Error, Slow Query, and Binlog Management Guide
ITPUB
ITPUB
Jul 7, 2017 · Databases

Why Most MySQL Optimization Tips Miss the Mark—and a Better Checklist

The article critiques a popular MySQL tuning list, explains why many of its suggestions are misguided, and presents a more practical, performance‑focused checklist that covers benchmarking, schema design, indexing, query rewriting, and engine‑specific tricks.

Database Enginesmysqlschema design
0 likes · 11 min read
Why Most MySQL Optimization Tips Miss the Mark—and a Better Checklist
转转QA
转转QA
May 9, 2017 · Databases

MySQL Slow Query and Index Optimization

This article explains how to identify and analyze MySQL slow queries using tools like SHOW VARIABLES, EXPLAIN, mysqldumpslow, and profiling, and provides practical recommendations for configuring server variables, optimizing indexes, and improving query performance through systematic testing and best‑practice SQL design.

Index OptimizationSQLmysql
0 likes · 18 min read
MySQL Slow Query and Index Optimization
ITPUB
ITPUB
Oct 10, 2016 · Databases

Why MySQL Query Cache Slowed My Production Database and How We Fixed It

A production MySQL 5.5 instance suffered intermittent latency and bursts of slow queries, which were traced to an oversized enabled query cache that caused mutex contention during frequent DML operations, and disabling the cache resolved the issue.

Database OptimizationIsolation Levelmysql
0 likes · 6 min read
Why MySQL Query Cache Slowed My Production Database and How We Fixed It
ITPUB
ITPUB
Aug 31, 2016 · Databases

Taming Black‑Swan Database Failures: Pagination, Join, and Count(*) Optimizations

The article examines how unpredictable "black‑swan" incidents caused by slow, high‑frequency queries can destabilize database systems and presents concrete MySQL optimization techniques for large pagination, join operations, and concurrent count(*) queries that reduced slow‑query volume by about ninety percent.

Count OptimizationJOIN optimizationmysql
0 likes · 9 min read
Taming Black‑Swan Database Failures: Pagination, Join, and Count(*) Optimizations