Tag

Database Performance

2 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.

Database PerformanceDockerMySQL
0 likes · 6 min read
Why Mastering MySQL Slow Query Log Is Essential for Performance
Java Tech Enthusiast
Java Tech Enthusiast
Jun 7, 2025 · Databases

How to Optimize Multi-Table Joins in MySQL: Practical Strategies

This article explains why excessive MySQL joins can cause performance problems and provides a comprehensive set of techniques—including query splitting, temporary tables, denormalization, index tuning, query rewriting, result‑set reduction, configuration tweaks, big‑data tools, and summary tables—to effectively optimize multi‑table join queries.

Database PerformanceJoin OptimizationMySQL
0 likes · 10 min read
How to Optimize Multi-Table Joins in MySQL: Practical Strategies
Aikesheng Open Source Community
Aikesheng Open Source Community
Jun 5, 2025 · Databases

How MySQL Connection Control Plugins Can Cause Connection Pile‑up and How to Fix It

This article explains the MySQL Connection Control Plugins introduced in 5.7.17, how improper configuration can lead to connection backlog and database hangs, and provides step‑by‑step installation, parameter tuning, testing procedures, and mitigation strategies to resolve the issue.

Connection ControlDatabase PerformanceMySQL
0 likes · 9 min read
How MySQL Connection Control Plugins Can Cause Connection Pile‑up and How to Fix It
Aikesheng Open Source Community
Aikesheng Open Source Community
May 28, 2025 · Databases

Analyzing and Optimizing Slow OceanBase SQL Queries Using TopSQL and Execution Plan Rewrites

This article investigates a slow OceanBase SQL query by examining CPU and TopSQL metrics, dissecting the execution plan, identifying batch join inefficiencies, rewriting the SQL for better performance, and demonstrating a reduction in execution time from over 2600 seconds to under one second.

Batch JoinDatabase PerformanceOceanBase
0 likes · 18 min read
Analyzing and Optimizing Slow OceanBase SQL Queries Using TopSQL and Execution Plan Rewrites
Architect
Architect
Apr 29, 2025 · Databases

Lessons Learned from Misusing INSERT INTO SELECT in MySQL Data Migration

A real‑world MySQL data‑migration case study shows how using INSERT INTO SELECT without proper indexing caused a full table scan, OOM errors, and data loss, and explains how to avoid the pitfall by adding appropriate indexes and understanding transaction locking.

Data MigrationDatabase PerformanceFull Table Scan
0 likes · 8 min read
Lessons Learned from Misusing INSERT INTO SELECT in MySQL Data Migration
360 Zhihui Cloud Developer
360 Zhihui Cloud Developer
Apr 27, 2025 · Databases

Why MySQL Memory Stays High and How to Optimize It

This article explains MySQL's memory architecture, why memory usage often stays high after spikes, and provides practical steps—including connection checks, slow query analysis, workload scaling, and switching to jemalloc—to diagnose and reduce memory consumption on 360's internal cloud platform.

Connection ManagementDatabase PerformanceMemory Optimization
0 likes · 7 min read
Why MySQL Memory Stays High and How to Optimize It
macrozheng
macrozheng
Apr 16, 2025 · Databases

Why Enterprises Shun Foreign Keys: Performance Risks and Alternatives

Although foreign keys enforce referential integrity, many enterprises avoid them because they can slow inserts, cause blocking cascade updates, trigger database update storms in high‑concurrency environments, and complicate sharding, leading developers to prefer redundant fields and handle relationships at the application layer.

Database PerformanceDistributed SystemsMySQL
0 likes · 6 min read
Why Enterprises Shun Foreign Keys: Performance Risks and Alternatives
Aikesheng Open Source Community
Aikesheng Open Source Community
Apr 15, 2025 · Databases

Understanding Full-Link Tracing in OceanBase: Concepts, Mechanisms, and Usage

This article explains OceanBase's full‑link tracing feature, covering its definition, internal working principle, trace‑log structure, span and tag details, configuration steps, and how to view trace data via the show‑trace command or the OCP visual interface, helping DBAs quickly diagnose performance issues.

Database PerformanceOCPOceanBase
0 likes · 16 min read
Understanding Full-Link Tracing in OceanBase: Concepts, Mechanisms, and Usage
Aikesheng Open Source Community
Aikesheng Open Source Community
Apr 9, 2025 · Databases

Understanding MySQL EXPLAIN Output Formats and Using JSON for Detailed Query Cost Analysis

This article explains the three MySQL EXPLAIN output formats—TRADITIONAL, JSON, and TREE—demonstrates how the JSON format provides richer cost and data‑read information, compares query costs of sample SQL statements, and offers practical optimization suggestions for poorly performing joins.

Database PerformanceEXPLAINJSON
0 likes · 9 min read
Understanding MySQL EXPLAIN Output Formats and Using JSON for Detailed Query Cost Analysis
vivo Internet Technology
vivo Internet Technology
Apr 2, 2025 · Databases

Case Study of Slow SQL Governance in an Activity Middleware System

The case study details how an activity‑middleware platform tackled slow SQL problems by cleaning historic data, introducing sharding and Elasticsearch off‑loading, optimizing queries with proper indexes and simplified joins, and automating nightly deletions, ultimately cutting daily slow queries from thousands to double‑digit levels and boosting system stability.

Database PerformanceIndexingMySQL
0 likes · 17 min read
Case Study of Slow SQL Governance in an Activity Middleware System
Zhuanzhuan Tech
Zhuanzhuan Tech
Mar 26, 2025 · Databases

MySQL Cost Evaluation, Index Pitfalls, and Memory Fragmentation in Slow Query Optimization

This article examines MySQL's cost estimation process, explains why added indexes may still be ineffective, discusses the impact of memory fragmentation, and presents practical techniques such as prefix index handling, index merging, and resource monitoring to improve slow‑query performance.

Database PerformanceIndex OptimizationMySQL
0 likes · 10 min read
MySQL Cost Evaluation, Index Pitfalls, and Memory Fragmentation in Slow Query Optimization
Selected Java Interview Questions
Selected Java Interview Questions
Mar 25, 2025 · Databases

Why Avoid IN and NOT IN in SQL Queries and What to Use Instead

The article explains that using IN and NOT IN in SQL can lead to poor performance, index misuse, and incorrect results especially with NULL values, and recommends replacing them with EXISTS/NOT EXISTS or JOIN constructs for more reliable and efficient queries.

Database PerformanceEXISTSIN
0 likes · 5 min read
Why Avoid IN and NOT IN in SQL Queries and What to Use Instead
Lobster Programming
Lobster Programming
Mar 21, 2025 · Databases

How to Count Website Visits Efficiently with Redis: Hash, Bitmap, and HyperLogLog

This article explains three Redis-based methods—Hash, Bitmap, and HyperLogLog—for tracking website user visits, detailing how each structure works, their implementation steps, memory and accuracy trade‑offs, and guidance on choosing the best approach for different traffic scenarios.

BitmapDatabase PerformanceHyperLogLog
0 likes · 6 min read
How to Count Website Visits Efficiently with Redis: Hash, Bitmap, and HyperLogLog
Architecture Digest
Architecture Digest
Mar 11, 2025 · Databases

Why You Should Avoid IN and NOT IN in SQL Queries: Performance Issues and Common Pitfalls

This article explains why the SQL keywords IN and NOT IN often lead to poor performance and unexpected results, demonstrates the problems with large tables and NULL values, and recommends using EXISTS, NOT EXISTS, or JOIN alternatives for more reliable and efficient queries.

Database PerformanceEXISTSIN
0 likes · 5 min read
Why You Should Avoid IN and NOT IN in SQL Queries: Performance Issues and Common Pitfalls
Aikesheng Open Source Community
Aikesheng Open Source Community
Feb 24, 2025 · Databases

MySQL EXPLAIN EXTRA: Interpreting SEMI JOIN Hints and Related Optimizations

This article explains how to read MySQL's EXPLAIN EXTRA column, covering SEMI JOIN hints such as FirstMatch, Start/End temporary, LooseScan, and the Range‑checked‑for‑each‑record optimization, with concrete examples and command‑line output to illustrate each case.

Database PerformanceEXPLAINMySQL
0 likes · 9 min read
MySQL EXPLAIN EXTRA: Interpreting SEMI JOIN Hints and Related Optimizations
Aikesheng Open Source Community
Aikesheng Open Source Community
Jan 21, 2025 · Databases

Understanding MySQL EXPLAIN EXTRA Hints: Impossible, No Matching, Recursive, Rematerialize, and Canned N Databases

This article explains the meaning and optimization strategies for various MySQL EXPLAIN EXTRA hints—including Impossible WHERE/HAVING, No matching rows, Recursive queries, Rematerialize, and canned N databases—provides example execution plans, code snippets, and performance comparisons to help developers write more efficient SQL statements.

Database PerformanceEXPLAINMySQL
0 likes · 10 min read
Understanding MySQL EXPLAIN EXTRA Hints: Impossible, No Matching, Recursive, Rematerialize, and Canned N Databases
Architect's Guide
Architect's Guide
Jan 17, 2025 · Databases

Understanding MySQL Multi‑Table Join Performance Compared to PostgreSQL and Query Decomposition Strategies

The article compares MySQL and PostgreSQL multi‑table join capabilities, explains why MySQL’s nested‑loop joins can be less efficient for complex queries, and discusses how decomposing joins into separate single‑table queries or moving logic to the service layer can improve performance, scalability, and caching.

Database PerformanceJOINMySQL
0 likes · 7 min read
Understanding MySQL Multi‑Table Join Performance Compared to PostgreSQL and Query Decomposition Strategies
Architecture Digest
Architecture Digest
Jan 16, 2025 · Artificial Intelligence

Redis Introduces Multi‑Threaded Query Engine to Boost Vector Search Performance for Generative AI

Redis has unveiled a multi‑threaded query engine that dramatically increases query throughput and lowers latency for vector similarity searches, offering up to 16× performance gains and enabling real‑time Retrieval‑Augmented Generation (RAG) workloads in generative AI applications.

Database PerformanceMulti-threadingRAG
0 likes · 7 min read
Redis Introduces Multi‑Threaded Query Engine to Boost Vector Search Performance for Generative AI
Aikesheng Open Source Community
Aikesheng Open Source Community
Dec 12, 2024 · Databases

Using EXPLAIN to Analyze and Optimize a Simple MySQL Query

This article demonstrates how to use MySQL's EXPLAIN statement to examine execution plans, interpret key fields such as possible_keys, key, rows, and Extra, and apply index adjustments—including adding and forcing indexes—to improve query performance while weighing sorting costs.

Database PerformanceEXPLAINIndex Optimization
0 likes · 11 min read
Using EXPLAIN to Analyze and Optimize a Simple MySQL Query