Tagged articles
5000 articles
Page 49 of 50
ITPUB
ITPUB
Feb 12, 2020 · Databases

8 MySQL Tricks to Supercharge Query Performance and Slash Execution Time

This article examines common MySQL performance pitfalls—such as large OFFSET limits, implicit type conversion, inefficient UPDATE/DELETE joins, mixed ordering, EXISTS subqueries, and poor condition push‑down—and demonstrates concrete query rewrites that reduce execution times from seconds to milliseconds.

MySQLQuery RewritingSQL optimization
0 likes · 7 min read
8 MySQL Tricks to Supercharge Query Performance and Slash Execution Time
Qunar Tech Salon
Qunar Tech Salon
Feb 12, 2020 · Databases

Understanding MySQL REDO Log: Purpose, Types, and Flush Timing

This article explains the essential role of MySQL REDO logs in ensuring data durability and performance, describes what would happen without logging, details various REDO log record formats, and outlines the multiple moments when InnoDB flushes logs to disk.

Database PerformanceInnoDBLog Flushing
0 likes · 18 min read
Understanding MySQL REDO Log: Purpose, Types, and Flush Timing
ITPUB
ITPUB
Feb 11, 2020 · Databases

Boost MySQL Performance: 8 Proven SQL Optimization Techniques

This article presents eight practical MySQL optimization strategies—including LIMIT redesign, implicit type conversion fixes, JOIN rewrites for updates/deletes, mixed sorting tricks, EXISTS elimination, condition push‑down, early data reduction, and intermediate result set push‑down—each illustrated with before‑and‑after queries, execution plans, and measurable speed improvements.

CTELIMIT redesignMySQL
0 likes · 7 min read
Boost MySQL Performance: 8 Proven SQL Optimization Techniques
Liangxu Linux
Liangxu Linux
Feb 10, 2020 · Databases

Master MySQL: Essential Naming, Design, and Indexing Standards

This guide presents comprehensive MySQL best‑practice rules covering object naming conventions, fundamental schema design, field type selection, index creation strategies, and SQL development habits to improve performance, maintainability, and reliability of production databases.

Database DesignMySQLPerformance Optimization
0 likes · 19 min read
Master MySQL: Essential Naming, Design, and Indexing Standards
Big Data Technology & Architecture
Big Data Technology & Architecture
Feb 10, 2020 · Big Data

Real‑time MySQL Binlog Capture with Canal: Principles, Architecture, Deployment and Comparison with Maxwell

This article explains how to use Alibaba's Canal to capture MySQL binlog changes in real time, covering its underlying protocol, component architecture, HA design with ZooKeeper, configuration steps, deployment examples, and a detailed comparison with alternative tools such as Maxwell and mysql_streamer.

Big DataCanalKafka
0 likes · 17 min read
Real‑time MySQL Binlog Capture with Canal: Principles, Architecture, Deployment and Comparison with Maxwell
Aikesheng Open Source Community
Aikesheng Open Source Community
Feb 10, 2020 · Databases

Handling Duplicate Data in MySQL: Techniques and Examples

This article explains how to identify and remove various kinds of duplicate data in MySQL—including fully duplicated rows, records with duplicate non‑key columns, and unwanted whitespace inside fields—by using SQL statements, table cloning, OS utilities, and regular‑expression updates, with performance measurements for each method.

Data cleaningMySQLSQL
0 likes · 13 min read
Handling Duplicate Data in MySQL: Techniques and Examples
Qunar Tech Salon
Qunar Tech Salon
Feb 10, 2020 · Databases

InnoDB Buffer Pool Management Mechanism and Implementation Details

This article explains the theory behind InnoDB's log management, details the architecture and dynamic sizing of the Buffer Pool, describes its internal data structures and multi‑instance implementation, and provides annotated source code snippets to illustrate how MySQL allocates and manages buffer pages.

Database InternalsInnoDBMySQL
0 likes · 15 min read
InnoDB Buffer Pool Management Mechanism and Implementation Details
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 OptimizationMySQLSQLyog
0 likes · 6 min read
Why a MySQL Query Took 30 Seconds and How a Hidden Index Cut It to 0.2 s
Architecture Digest
Architecture Digest
Feb 7, 2020 · Backend Development

Design and Implementation of a Transactional Message Module with Spring Boot, RabbitMQ, and MySQL

This article details the design principles, implementation steps, and code examples for a lightweight transactional message module in a microservices environment, leveraging Spring Boot, RabbitMQ, MySQL, and Redisson to achieve low‑intrusion, eventual‑consistency messaging with compensation and retry mechanisms.

DistributedSystemsMySQLRabbitMQ
0 likes · 23 min read
Design and Implementation of a Transactional Message Module with Spring Boot, RabbitMQ, and MySQL
Programmer DD
Programmer DD
Feb 6, 2020 · Backend Development

Master Spring Boot DataSource: Configure HikariCP for Efficient DB Access

This article explains the concept of a DataSource, compares it with core JDBC APIs, and provides a step‑by‑step guide to configuring Spring Boot 2.x’s default HikariCP connection pool, including common properties, their meanings, and links to full example projects.

DataSourceHikariCPJDBC
0 likes · 8 min read
Master Spring Boot DataSource: Configure HikariCP for Efficient DB Access
Programmer DD
Programmer DD
Feb 4, 2020 · Backend Development

Master Spring Boot JDBC: Configure, Query, and Test MySQL with JdbcTemplate

This guide walks you through configuring data sources in Spring Boot, adding JDBC dependencies, using embedded databases, connecting to MySQL, defining entities and repositories with JdbcTemplate, and writing comprehensive unit tests to perform CRUD operations, illustrating a complete backend data access workflow.

CRUDJavaJdbcTemplate
0 likes · 9 min read
Master Spring Boot JDBC: Configure, Query, and Test MySQL with JdbcTemplate
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 OptimizationMySQLdistinct vs group by
0 likes · 5 min read
MySQL Slow Query Optimization: Reducing Execution Time from 30 Seconds to 0.19 Seconds
Java Backend Technology
Java Backend Technology
Jan 26, 2020 · Databases

Why LIMIT with Large Offsets Slows MySQL Queries and How to Fix It

The article explains how using LIMIT with a large offset on a MySQL table forces the engine to scan hundreds of thousands of index rows and cluster‑index pages, dramatically increasing I/O, and shows a sub‑query join technique that reduces the scan to just the needed rows, cutting execution time from minutes to fractions of a second while also illustrating the impact on the InnoDB buffer pool.

LIMITMySQLperformance
0 likes · 10 min read
Why LIMIT with Large Offsets Slows MySQL Queries and How to Fix It
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.

DBLELoggingMySQL
0 likes · 4 min read
DBLE Slow Query Log – Demonstration and Usage
Aikesheng Open Source Community
Aikesheng Open Source Community
Jan 19, 2020 · Databases

MySQL Join Optimization: Understanding BNL vs NLJ and Index Issues with Character Set Mismatches

This article analyzes a slow MySQL LEFT JOIN query, explains why the optimizer chose the inefficient Block Nested Loop algorithm instead of Index Nested Loop, shows how character‑set and collation differences cause index loss, and demonstrates how converting to INNER JOIN or fixing indexes restores high performance.

BNLJOIN optimizationMySQL
0 likes · 10 min read
MySQL Join Optimization: Understanding BNL vs NLJ and Index Issues with Character Set Mismatches
Big Data Technology & Architecture
Big Data Technology & Architecture
Jan 15, 2020 · Databases

Understanding and Using Hash Join in MySQL 8.0

This article explains the concept of Hash Join in MySQL 8.0, compares it with Nested Loop joins, shows how to enable or force it with server variables or hints, and presents performance benchmarks that demonstrate its speed advantages on large datasets.

DatabaseHash JoinMySQL
0 likes · 12 min read
Understanding and Using Hash Join in MySQL 8.0
Aikesheng Open Source Community
Aikesheng Open Source Community
Jan 15, 2020 · Databases

MySQL 5.7 Monitoring and Troubleshooting Guide: Connections, Long Transactions, Metadata Locks, and More

This guide provides a comprehensive overview of MySQL 5.7 monitoring techniques, covering connection parameters, long‑running transactions, metadata lock tracing, lock‑wait analysis, global read locks, memory usage, partitioned tables, database size summaries, table update status, primary key and index considerations, storage engine distribution, and real‑time load metrics.

MySQLSQLTroubleshooting
0 likes · 6 min read
MySQL 5.7 Monitoring and Troubleshooting Guide: Connections, Long Transactions, Metadata Locks, and More
Aikesheng Open Source Community
Aikesheng Open Source Community
Jan 14, 2020 · Databases

MySQL 8.0.19 Maintenance Release – New Features and Improvements

MySQL 8.0.19 introduces InnoDB ReplicaSet, Router enhancements, numerous SQL syntax additions, optimizer improvements, new Information Schema role views, security features, replication options, X Protocol compression, and a range of deprecations and bug fixes, providing a comprehensive update for database administrators and developers.

DatabaseInnoDBMySQL
0 likes · 12 min read
MySQL 8.0.19 Maintenance Release – New Features and Improvements
Senior Brother's Insights
Senior Brother's Insights
Jan 14, 2020 · Databases

Mastering Database Sharding: When, Why, and How to Split Your Data

This comprehensive guide explains the motivations, methods, and trade‑offs of database sharding—including vertical and horizontal partitioning, sharding rules, handling cross‑node joins, distributed transactions, global primary key generation, and practical migration strategies—so you can scale relational databases effectively.

Global ID GenerationMySQLdatabase sharding
0 likes · 24 min read
Mastering Database Sharding: When, Why, and How to Split Your Data
macrozheng
macrozheng
Jan 14, 2020 · Databases

How to Set Up MySQL Master‑Slave Replication in Docker (Step‑by‑Step Guide)

This article explains the principles of MySQL master‑slave replication and provides a detailed, step‑by‑step tutorial for configuring a master and a slave instance in a Docker environment, including configuration files, Docker commands, replication setup, testing, and troubleshooting.

DatabaseDockerMaster‑Slave
0 likes · 9 min read
How to Set Up MySQL Master‑Slave Replication in Docker (Step‑by‑Step Guide)
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
ITPUB
ITPUB
Jan 10, 2020 · Databases

How One MySQL Instance Impacts Millions: The Hidden Life‑and‑Death Stakes of Open‑Source Software

This article reveals how open‑source software like MySQL powers critical systems—from hospital patient records to massive retail operations—illustrating that a single code error or missing backup can affect tens of millions of people worldwide, underscoring the profound responsibility of open‑source contributors.

MySQLReliabilitySoftware Impact
0 likes · 7 min read
How One MySQL Instance Impacts Millions: The Hidden Life‑and‑Death Stakes of Open‑Source Software
dbaplus Community
dbaplus Community
Jan 9, 2020 · Databases

Mastering Vitess: Scaling MySQL with Cloud‑Native Sharding and Resharding

This article introduces Vitess, a cloud‑native MySQL sharding middleware, explains its key features, architecture, core concepts such as cells, keyspaces, shards and vindexes, and provides a step‑by‑step guide to performing a reshard from two to four shards while highlighting operational challenges and practical recommendations.

Cloud NativeDatabase MiddlewareMySQL
0 likes · 13 min read
Mastering Vitess: Scaling MySQL with Cloud‑Native Sharding and Resharding
21CTO
21CTO
Jan 9, 2020 · Databases

Why MySQL Won 2019 DBMS of the Year and What It Means for Database Trends

The 2019 DB-Engines ranking crowned MySQL as the most popular DBMS, with Oracle and Microsoft SQL Server following, and discusses how relational databases dominate while NoSQL systems remain vital, highlighting evolving features and the implications for future database technology choices.

DBMSDatabase RankingsMySQL
0 likes · 9 min read
Why MySQL Won 2019 DBMS of the Year and What It Means for Database Trends
MaGe Linux Operations
MaGe Linux Operations
Jan 8, 2020 · Operations

Essential Linux Ops Interview Guide: From RAID to Load Balancing

This article compiles a comprehensive set of Linux operations interview questions and answers covering fundamentals such as the definition of ops, RAID levels, load‑balancing tools, middleware, MySQL troubleshooting, scripting, network diagnostics, and best‑practice optimization techniques for system administrators.

InterviewMySQLnetworking
0 likes · 38 min read
Essential Linux Ops Interview Guide: From RAID to Load Balancing
Aikesheng Open Source Community
Aikesheng Open Source Community
Jan 8, 2020 · Databases

Percona Toolkit Utilities for MySQL: Archiving, Config Comparison, Replication Lag, Variable Advice, and Debugging

This guide introduces several Percona Toolkit command‑line tools—pt‑archiver, pt‑config‑diff, pt‑heartbeat, pt‑variable‑advisor, and pt‑pmp—explaining their purpose, providing example commands for data archiving, configuration comparison, accurate replication lag measurement, variable optimization suggestions, and stack‑trace debugging, plus a quick installation snippet.

Database AdministrationMySQLpercona-toolkit
0 likes · 11 min read
Percona Toolkit Utilities for MySQL: Archiving, Config Comparison, Replication Lag, Variable Advice, and Debugging
Architecture Digest
Architecture Digest
Jan 5, 2020 · Databases

Data Sharding, Partitioning, and Distributed ID Strategies for Relational Databases

This article explains why relational databases become bottlenecks at large scale, introduces vertical and horizontal sharding techniques, discusses the challenges of distributed transactions, cross‑shard queries, pagination, and global primary‑key generation, and provides practical guidelines and middleware options for implementing sharding in production systems.

MySQLVertical Partitioningdatabase partitioning
0 likes · 23 min read
Data Sharding, Partitioning, and Distributed ID Strategies for Relational Databases
Senior Brother's Insights
Senior Brother's Insights
Jan 4, 2020 · Databases

How iQIYI Chooses, Optimizes, and Manages Its Diverse Database Stack

This article walks through iQIYI's practical approach to database selection, covering key evaluation dimensions, a taxonomy of SQL/NoSQL and OLTP/OLAP workloads, detailed optimizations for MySQL, Redis, Couchbase and the internally built HiKV, as well as multi‑stage operational management and concrete selection recommendations.

CouchbaseHiKVMySQL
0 likes · 21 min read
How iQIYI Chooses, Optimizes, and Manages Its Diverse Database Stack
Programmer DD
Programmer DD
Jan 3, 2020 · Databases

How to Supercharge MySQL Queries: 8 Proven Optimization Techniques

This article explores common MySQL performance pitfalls such as inefficient LIMIT usage, implicit type conversion, subquery handling, and mixed sorting, and demonstrates eight practical rewrite strategies—including index‑friendly pagination, JOIN replacements, condition pushdown, and WITH clauses—to dramatically reduce query execution times from seconds to milliseconds.

Database PerformanceMySQLQuery Tuning
0 likes · 8 min read
How to Supercharge MySQL Queries: 8 Proven Optimization Techniques
macrozheng
macrozheng
Dec 31, 2019 · Databases

10 Common MySQL Index Pitfalls and How to Fix Them

This article analyzes ten typical situations that cause MySQL indexes to become ineffective—such as OR conditions, missing quotes, leading wildcards in LIKE, composite‑index ordering, built‑in functions, arithmetic operations, inequality operators, NULL checks, charset mismatches, and optimizer choices—and provides concrete examples, visual explanations, and practical solutions to restore index usage.

Database PerformanceMySQLSQL
0 likes · 11 min read
10 Common MySQL Index Pitfalls and How to Fix Them
ITPUB
ITPUB
Dec 30, 2019 · Databases

8 Proven MySQL Tricks to Supercharge Your Queries

This article presents eight practical MySQL optimization techniques—including smarter LIMIT usage, implicit type conversion fixes, join rewrites, mixed sorting, EXISTS elimination, condition pushdown, early row limiting, and intermediate result pushdown—each illustrated with SQL examples and performance comparisons that reduce query times from seconds to milliseconds.

EXISTSJoinLIMIT
0 likes · 13 min read
8 Proven MySQL Tricks to Supercharge Your Queries
Aikesheng Open Source Community
Aikesheng Open Source Community
Dec 30, 2019 · Databases

Understanding MySQL Full‑Table‑Scan Data Access and Field Filtering Process

This article explains how MySQL processes a full‑table‑scan query, detailing the construction of read‑sets, template creation, cursor positioning, row conversion to MySQL format, where‑clause filtering, and subsequent row iteration, while highlighting the performance impact of the number of selected fields.

Database InternalsFull Table ScanMySQL
0 likes · 11 min read
Understanding MySQL Full‑Table‑Scan Data Access and Field Filtering Process
Architecture Digest
Architecture Digest
Dec 28, 2019 · Databases

Comprehensive Guide to MySQL Optimization: Philosophy, Tools, and Practical Steps

This article provides a thorough overview of MySQL optimization, covering the underlying philosophy, risk considerations, participants, optimization scope across hardware, system, application, and database layers, practical tools, command‑line techniques, and detailed tuning recommendations for both system and database parameters.

Database OptimizationHardwareLinux
0 likes · 9 min read
Comprehensive Guide to MySQL Optimization: Philosophy, Tools, and Practical Steps
Programmer DD
Programmer DD
Dec 25, 2019 · Databases

How MySQL Locks DELETE Rows: MVCC, Isolation Levels, and Index Types Explained

This article analyzes how MySQL/InnoDB applies row-level locks for DELETE and SELECT statements under various index configurations and isolation levels, explaining MVCC, current vs. snapshot reads, two‑phase locking, gap and next‑key locks, and the impact of primary, unique, non‑unique, and missing indexes.

IndexesInnoDBIsolation Levels
0 likes · 15 min read
How MySQL Locks DELETE Rows: MVCC, Isolation Levels, and Index Types Explained
Liangxu Linux
Liangxu Linux
Dec 23, 2019 · Databases

Boost MySQL Performance: Practical Tips for LIMIT, Implicit Conversion, Joins, and More

This article presents concrete MySQL optimization techniques—including smarter LIMIT usage, avoiding implicit type conversion, rewriting updates and deletes with JOINs, handling mixed ordering, replacing EXISTS with joins, pushing down conditions, and leveraging WITH clauses—to dramatically reduce query execution times from seconds to milliseconds.

EXISTSJoinLIMIT
0 likes · 14 min read
Boost MySQL Performance: Practical Tips for LIMIT, Implicit Conversion, Joins, and More
ITPUB
ITPUB
Dec 17, 2019 · Databases

Mastering LEFT JOIN: Common Pitfalls and Practical Solutions

This article explains the fundamentals of LEFT JOIN in SQL, illustrates one‑to‑one, one‑to‑many, and many‑to‑many scenarios, compares ON versus WHERE conditions, and provides concrete MySQL and Hive examples with code snippets and visual diagrams to avoid common mistakes.

DatabaseHiveJoin Types
0 likes · 14 min read
Mastering LEFT JOIN: Common Pitfalls and Practical Solutions
Architecture Digest
Architecture Digest
Dec 17, 2019 · Databases

Scaling Dada's Delivery Platform: From Simple Architecture to Read/Write Separation, Vertical and Horizontal Sharding

This article chronicles Dada's rapid growth from a single‑database backend to a multi‑layer architecture that employs MySQL read/write separation, vertical partitioning, and horizontal sharding with a custom ID generator to sustain millions of daily orders while maintaining performance and stability.

BackendArchitectureDatabaseScalingMySQL
0 likes · 14 min read
Scaling Dada's Delivery Platform: From Simple Architecture to Read/Write Separation, Vertical and Horizontal Sharding
dbaplus Community
dbaplus Community
Dec 16, 2019 · Databases

MySQL 8.0 vs MariaDB 10.4: Authentication, InnoDB, Clone, Optimizer & Backup Highlights

This article compares key new features of MySQL 8.0 and MariaDB 10.4—including authentication plugin changes, Unix‑socket auth, atomic DDL, instant column adds, clone plugin usage, optimizer enhancements, resource groups, query‑rewrite, and backup tools—providing step‑by‑step commands, code snippets, and practical caveats for database upgrades.

AuthenticationMariaDBMySQL
0 likes · 21 min read
MySQL 8.0 vs MariaDB 10.4: Authentication, InnoDB, Clone, Optimizer & Backup Highlights
Architecture Digest
Architecture Digest
Dec 16, 2019 · Databases

iQIYI’s Database Selection, Optimization, and Management Practices

This article discusses iQIYI’s approach to database selection, covering evaluation criteria, the variety of databases used—including MySQL, TiDB, Redis, Couchbase, and the in‑house HiKV—along with detailed optimization, high‑availability, auditing, and operational management techniques for each system.

CouchbaseHiKVMySQL
0 likes · 20 min read
iQIYI’s Database Selection, Optimization, and Management Practices
dbaplus Community
dbaplus Community
Dec 15, 2019 · Databases

10 MySQL Techniques to Sort Custom Role Levels (Make 2 > 3)

This article tackles the challenge of ordering hard‑coded role levels in a MySQL table by presenting ten distinct SQL solutions—including adding a helper column, using FIELD, FIND_IN_SET, CASE, subqueries, UNION, hash‑based formulas, and custom arithmetic—so that a "vice‑manager" (level 2) can be ranked above a "manager" (level 3).

Custom OrderDatabaseMySQL
0 likes · 10 min read
10 MySQL Techniques to Sort Custom Role Levels (Make 2 > 3)
Big Data Technology & Architecture
Big Data Technology & Architecture
Dec 14, 2019 · Databases

MySQL Logical Architecture, Query Process, and Performance Optimization

This article explains MySQL's three‑layer logical architecture, the end‑to‑end query execution flow—including client/server protocol, query cache, parsing, cost‑based optimization, execution engine, and result delivery—followed by practical performance‑tuning advice on schema design, data types, index creation, and specific query optimizations such as COUNT(), JOINs, LIMIT pagination, and UNION handling.

Database PerformanceMySQLSQL
0 likes · 34 min read
MySQL Logical Architecture, Query Process, and Performance Optimization
21CTO
21CTO
Dec 12, 2019 · Databases

Why Does Alibaba’s Java Handbook Ban Joins Over Three Tables? A Deep MySQL & Oracle Performance Test

This article investigates the claim from Alibaba's Java Development Manual that joining more than three tables should be avoided, by setting up a MySQL 5.7 environment, generating massive synthetic data, executing multi‑table join queries, analyzing execution times, and comparing the results with Oracle, ultimately revealing the practical limits of MySQL joins on large data sets.

Data GenerationDatabase OptimizationJoin Performance
0 likes · 12 min read
Why Does Alibaba’s Java Handbook Ban Joins Over Three Tables? A Deep MySQL & Oracle Performance Test
Aikesheng Open Source Community
Aikesheng Open Source Community
Dec 12, 2019 · Databases

Analyzing MySQL Binary Log Events with the infobin Tool

This article introduces the open‑source infobin utility for parsing MySQL binary logs, explains how it detects long‑running and large transactions, measures event generation speed, aggregates per‑table DML events, and demonstrates its usage with sample commands and output, offering a faster alternative to mysqlbinlog.

MySQLSQLbinary log
0 likes · 11 min read
Analyzing MySQL Binary Log Events with the infobin Tool
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
ITPUB
ITPUB
Dec 9, 2019 · Fundamentals

Master Date Operations in pandas and SQL: Retrieval, Conversion, and Calculation

This tutorial walks through loading order data into pandas and SQL, then demonstrates how to retrieve current dates, extract date components, convert between readable dates and Unix timestamps, transform between 10‑digit and 8‑digit date formats, and perform date arithmetic using pandas, MySQL, and Hive.

HiveMySQLSQL
0 likes · 16 min read
Master Date Operations in pandas and SQL: Retrieval, Conversion, and Calculation
Architecture Digest
Architecture Digest
Dec 6, 2019 · Databases

Understanding InnoDB Index Structures: B+ Trees, Covering Indexes, and Best Practices

This article explains how MySQL InnoDB implements indexes with B+ trees, describes primary and secondary (clustered and non‑clustered) indexes, the concepts of row lookup, covering indexes, composite indexes, the left‑most prefix rule, index push‑down, and provides practical guidelines for creating and maintaining efficient indexes.

B+TreeDatabase OptimizationInnoDB
0 likes · 10 min read
Understanding InnoDB Index Structures: B+ Trees, Covering Indexes, and Best Practices
dbaplus Community
dbaplus Community
Dec 3, 2019 · Databases

How iQIYI Selects, Optimizes, and Manages Its Diverse Database Stack

This article explains iQIYI's multi‑dimensional approach to database selection, details the practical use and optimization of MySQL, TiDB, Redis, Couchbase, and the internally built HiKV, and offers concrete recommendations for choosing the right database in different scenarios.

CouchbaseHiKVMySQL
0 likes · 20 min read
How iQIYI Selects, Optimizes, and Manages Its Diverse Database Stack
Aikesheng Open Source Community
Aikesheng Open Source Community
Dec 3, 2019 · Databases

Understanding How MySQL SHOW PROCESSLIST Calculates the Time Column and Why Negative Values Appear

This article explains the internal calculation of the Time column shown by MySQL's SHOW PROCESSLIST command, covering the source functions, overloads of THD::set_time, various scenarios that affect the result—including replication lag, manual timestamp settings, and idle sessions—and why Percona and official builds may display different values.

Database InternalsMySQLSHOW PROCESSLIST
0 likes · 10 min read
Understanding How MySQL SHOW PROCESSLIST Calculates the Time Column and Why Negative Values Appear
MaGe Linux Operations
MaGe Linux Operations
Dec 1, 2019 · Databases

Unlock MySQL Performance: Deep Dive into Query Optimization & Index Design

This article explains MySQL's logical architecture, query execution steps, client‑server protocol, query cache behavior, cost‑based optimizer mechanics, and practical index design strategies—including B+Tree fundamentals, covering indexes, and common pitfalls—to help developers achieve measurable performance improvements.

Database PerformanceMySQLcost‑based optimizer
0 likes · 32 min read
Unlock MySQL Performance: Deep Dive into Query Optimization & Index Design
Java Backend Technology
Java Backend Technology
Dec 1, 2019 · Databases

Why Large LIMIT Offsets Slow MySQL Queries and How to Fix Them

This article explains how using a large OFFSET in a MySQL LIMIT clause forces the server to scan hundreds of thousands of index and data pages, causing massive random I/O, and demonstrates a faster rewrite with an inner join that dramatically reduces buffer‑pool usage and execution time.

InnoDBLIMITMySQL
0 likes · 7 min read
Why Large LIMIT Offsets Slow MySQL Queries and How to Fix Them
Java High-Performance Architecture
Java High-Performance Architecture
Nov 28, 2019 · Databases

How MySQL 8’s Hash Join Boosts Query Performance

Learn how MySQL 8’s hash join algorithm works by building an in‑memory hash table from the smaller table, probing the larger table for matches, and handling oversized tables through disk‑based chunk files, offering a more efficient alternative to traditional nested‑loop joins.

Hash JoinJoin AlgorithmsMySQL
0 likes · 5 min read
How MySQL 8’s Hash Join Boosts Query Performance
Aikesheng Open Source Community
Aikesheng Open Source Community
Nov 27, 2019 · Databases

Using dbdeployer to Quickly Set Up MySQL Test Environments

This guide introduces the dbdeployer tool, walks through its installation on macOS/Linux, shows how to configure sandbox paths, download MySQL binaries, and deploy various MySQL topologies such as single nodes, master‑slave replication, and group replication with one‑click commands.

AutomationMySQLdatabase testing
0 likes · 10 min read
Using dbdeployer to Quickly Set Up MySQL Test Environments
IT Architects Alliance
IT Architects Alliance
Nov 21, 2019 · Databases

Why MySQL Subqueries Took Hours and How Indexes Fixed It

A MySQL 5.6 database with three large tables suffered a 30,000‑second query when searching for students scoring 100 in a specific subject; by analyzing the execution plan, adding indexes on filter columns, and rewriting the query as a join, execution time dropped to under a second.

JoinMySQLSQL optimization
0 likes · 8 min read
Why MySQL Subqueries Took Hours and How Indexes Fixed It
dbaplus Community
dbaplus Community
Nov 21, 2019 · Databases

How to Build a Real‑Time MySQL Statistics Platform with ClickHouse

This article explains how a growing company designed, optimized, and deployed a comprehensive MySQL monitoring and analysis pipeline—moving from Flume‑HDFS‑Hive to ClickTail‑ClickHouse, enriching SQL parsing, and applying practical methods for state statistics, trend analysis, permission management, and data‑skew detection.

DBADatabase MonitoringMySQL
0 likes · 16 min read
How to Build a Real‑Time MySQL Statistics Platform with ClickHouse
21CTO
21CTO
Nov 21, 2019 · Databases

How I Reduced a 30,000‑second MySQL Query to 0.001s with Indexes & Joins

This article walks through a real‑world MySQL performance case where a nested sub‑query on millions of rows took over eight hours, explains why the plan used full table scans, and shows step‑by‑step index creation and query rewrites that cut the execution time to a millisecond.

IndexesJoinMySQL
0 likes · 7 min read
How I Reduced a 30,000‑second MySQL Query to 0.001s with Indexes & Joins
Java Backend Technology
Java Backend Technology
Nov 21, 2019 · Databases

Boost MySQL Performance: 8 Proven Tricks to Slash Query Times

This article examines common MySQL performance pitfalls such as inefficient LIMIT usage, implicit type conversion, suboptimal joins, mixed sorting, and unpushed predicates, and demonstrates eight practical rewriting techniques—including using max values, JOINs, WITH clauses, and early range reduction—to dramatically accelerate query execution.

DatabaseMySQLPerformance tuning
0 likes · 7 min read
Boost MySQL Performance: 8 Proven Tricks to Slash Query Times
Programmer DD
Programmer DD
Nov 21, 2019 · Databases

Why Alibaba’s Java Handbook Limits Joins and How to Write Efficient SQL

The article explains why the Alibaba Java Development Manual restricts joins to three tables, discusses MySQL’s join algorithm limitations, and offers practical alternatives such as query decomposition, denormalization, and using IN or hash joins to improve performance.

Database DesignDenormalizationMySQL
0 likes · 6 min read
Why Alibaba’s Java Handbook Limits Joins and How to Write Efficient SQL
Aikesheng Open Source Community
Aikesheng Open Source Community
Nov 19, 2019 · Databases

Understanding Hash Join in MySQL 8.0.18

This article explains how MySQL 8.0.18 introduces the hash join algorithm, describes its build and probe phases, disk‑overflow handling, usage instructions, optimizer switches, performance comparisons with block nested loops, and current limitations, providing code examples and practical guidance.

Hash JoinJoin AlgorithmsMySQL
0 likes · 9 min read
Understanding Hash Join in MySQL 8.0.18