Tagged articles

InnoDB

905 articles · Page 6 of 10
Top Architect
Top Architect
Sep 21, 2021 · Databases

Understanding MySQL LIMIT OFFSET Performance and Buffer‑Pool Impact

The article demonstrates how a large OFFSET in a MySQL LIMIT query forces MySQL to scan millions of index rows and data pages, causing severe slowdown, and shows that rewriting the query with an inner‑join sub‑select dramatically reduces I/O and buffer‑pool usage, confirming the performance difference through experiments.

InnoDBLIMITMySQL
0 likes · 8 min read
Understanding MySQL LIMIT OFFSET Performance and Buffer‑Pool Impact
Programmer DD
Programmer DD
Sep 13, 2021 · Databases

COUNT(*), COUNT(1) or COUNT(column) in MySQL? Which Is Faster?

This article compares MySQL's COUNT(*), COUNT(1) and COUNT(column) functions, explains how each handles NULL values, analyzes performance differences on MyISAM and InnoDB engines, and provides practical recommendations for writing efficient count queries and existence checks.

COUNTCOUNT(1)COUNT(column)
0 likes · 9 min read
COUNT(*), COUNT(1) or COUNT(column) in MySQL? Which Is Faster?
Top Architect
Top Architect
Sep 10, 2021 · Databases

Optimizing MySQL LIMIT Queries by Reducing Unnecessary Row Scans

This article explains why using a large OFFSET with MySQL LIMIT can cause severe performance degradation, demonstrates the problem with a real‑world 9.5 million‑row table, and shows how rewriting the query with a sub‑query that selects only primary keys can cut execution time from seconds to milliseconds.

DatabaseInnoDBLIMIT
0 likes · 8 min read
Optimizing MySQL LIMIT Queries by Reducing Unnecessary Row Scans
JavaEdge
JavaEdge
Sep 10, 2021 · Databases

MySQL Lock Types Explained: Row, Gap, Metadata and Deadlock Prevention

This article examines MySQL’s locking mechanisms—including shared and exclusive row locks, gap and next‑key locks, table‑level and metadata locks—detailing how different SQL statements and index types affect lock acquisition, illustrating lock behavior with examples, and offering practical strategies to avoid deadlocks.

DeadlockInnoDBLocks
0 likes · 15 min read
MySQL Lock Types Explained: Row, Gap, Metadata and Deadlock Prevention
Qunar Tech Salon
Qunar Tech Salon
Sep 9, 2021 · Databases

InnoDB Startup Hang Analysis: Truncate, Flush Sync, and Debugging Strategies

An in-depth investigation of a MySQL InnoDB startup deadlock caused by truncate operations and the innodb_flush_sync parameter, detailing log observations, stack traces, source code examination, and three practical solutions including GDB intervention, parameter adjustment, and data directory cleanup.

DebuggingInnoDBMySQL
0 likes · 15 min read
InnoDB Startup Hang Analysis: Truncate, Flush Sync, and Debugging Strategies
Selected Java Interview Questions
Selected Java Interview Questions
Aug 30, 2021 · Databases

MySQL Interview Questions and Answers: Indexes, InnoDB vs MyISAM, Transactions, Optimization, and Design

This article compiles a comprehensive set of MySQL interview questions covering index types, the differences between MyISAM and InnoDB, the rationale for auto‑increment primary keys, sharding strategies, ACID properties, isolation levels, storage‑engine trade‑offs, normalization, index best practices, data types, performance tuning, locking mechanisms, B+Tree characteristics, and common SQL operations.

InnoDBMySQLOptimization
0 likes · 28 min read
MySQL Interview Questions and Answers: Indexes, InnoDB vs MyISAM, Transactions, Optimization, and Design
Programmer DD
Programmer DD
Aug 29, 2021 · Databases

Why MySQL DELETE Doesn’t Shrink Table Size and How to Fix It

This article explains why MySQL's DELETE command only marks rows as reusable without shrinking the .ibd file, describes the underlying B+‑tree storage mechanism, and provides practical solutions such as OPTIMIZE TABLE, ALTER TABLE, and online DDL options to reclaim space and avoid table‑level locks.

DELETEInnoDBOnline DDL
0 likes · 7 min read
Why MySQL DELETE Doesn’t Shrink Table Size and How to Fix It
Architect's Journey
Architect's Journey
Aug 26, 2021 · Databases

Peeling Back MySQL InnoDB: A Deep Dive into Its Storage Engine

This article dissects MySQL's InnoDB storage engine by first exposing the internal page layout, then explaining the clustered index organization, and finally detailing the slot mechanism used for intra‑page queries, while illustrating insertion strategies and space‑reclamation techniques.

Database InternalsInnoDBMySQL
0 likes · 11 min read
Peeling Back MySQL InnoDB: A Deep Dive into Its Storage Engine
Top Architect
Top Architect
Aug 26, 2021 · Databases

Understanding MySQL Locks: Table, Row, and Page Locking Mechanisms

This article explains why MySQL uses locks, describes table‑level, row‑level, and page‑level locking, outlines lock types such as shared, exclusive, and intention locks, and provides practical usage examples and common troubleshooting tips for InnoDB and other storage engines.

DatabaseInnoDBLocks
0 likes · 7 min read
Understanding MySQL Locks: Table, Row, and Page Locking Mechanisms
dbaplus Community
dbaplus Community
Aug 24, 2021 · Databases

Why Slow SQL Hurts Your MySQL and How to Fix It

This article explains the dangers of slow SQL in MySQL, walks through the query execution flow, details InnoDB storage engine architecture and index types, and provides practical strategies for indexing, query rewriting, and configuration to eliminate performance bottlenecks.

InnoDBMySQLSlow Query
0 likes · 14 min read
Why Slow SQL Hurts Your MySQL and How to Fix It
FunTester
FunTester
Aug 20, 2021 · Databases

Why Is One MySQL CPU Core at 99%? A Step‑by‑Step Troubleshooting Guide

During a performance test a MySQL server showed one CPU core constantly at 99% while the others were idle, prompting a detailed investigation that checks I/O thread settings, multi‑core utilization, transaction locks, slow‑query logging, and index optimization to resolve the bottleneck.

InnoDBMySQLPerformance Tuning
0 likes · 6 min read
Why Is One MySQL CPU Core at 99%? A Step‑by‑Step Troubleshooting Guide
21CTO
21CTO
Aug 16, 2021 · Databases

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

This article explains why MySQL queries using LIMIT with a large offset become extremely slow, demonstrates the inefficiency through a 950‑million‑row table example, and shows how rewriting the query with a sub‑select join reduces execution time from seconds to milliseconds while preserving results.

InnoDBLIMIT OffsetMySQL
0 likes · 9 min read
Why LIMIT with Large Offsets Slows MySQL and How to Fix It
Top Architect
Top Architect
Aug 16, 2021 · Databases

Understanding MySQL Auto‑Increment IDs and Their Limits

This article explains the various types of auto‑increment identifiers in MySQL—including table primary keys, InnoDB row_id, Xid, trx_id, thread_id—and discusses their maximum values, overflow behavior, and alternative solutions such as using Redis for external unique keys.

InnoDBMySQLRedis
0 likes · 8 min read
Understanding MySQL Auto‑Increment IDs and Their Limits
ITPUB
ITPUB
Aug 13, 2021 · Databases

Why LIMIT with Large OFFSET Slows MySQL and How to Speed It Up

When a MySQL query uses LIMIT with a large offset on a table of millions of rows, the database must scan hundreds of thousands of index entries and corresponding clustered rows, causing massive random I/O; rewriting the query with a sub‑query join reduces I/O dramatically, cutting execution time from over a minute to under a second while also preventing buffer‑pool pollution.

InnoDBLIMITMySQL
0 likes · 9 min read
Why LIMIT with Large OFFSET Slows MySQL and How to Speed It Up
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Aug 11, 2021 · Databases

How MySQL InnoDB Guarantees ACID: Locks, MVCC, and Log Mechanics

This article explains how MySQL's InnoDB engine implements ACID properties by detailing transaction atomicity, consistency, isolation levels, lock granularity, MVCC version chains, undo/redo logs, buffer pool behavior, and the interplay between redo log and binlog to ensure durability and data integrity.

ACIDInnoDBLock
0 likes · 16 min read
How MySQL InnoDB Guarantees ACID: Locks, MVCC, and Log Mechanics
Wukong Talks Architecture
Wukong Talks Architecture
Aug 4, 2021 · Databases

Understanding MySQL InnoDB Locks: Shared, Exclusive, Intention, Gap, Next‑Key, Auto‑Inc, and Predicate Locks

The article presents a detailed interview‑style walkthrough of MySQL InnoDB locking mechanisms, covering table‑ versus row‑level locks, shared and exclusive locks, intention locks, gap and next‑key locks, auto‑increment locks, predicate locks, and related SQL statements, illustrated with tables and code examples.

DatabaseInnoDBLocks
0 likes · 13 min read
Understanding MySQL InnoDB Locks: Shared, Exclusive, Intention, Gap, Next‑Key, Auto‑Inc, and Predicate Locks
Top Architect
Top Architect
Jul 19, 2021 · Databases

Why MySQL DELETE Does Not Reduce Table File Size and How to Shrink It

The article explains why deleting rows in MySQL does not shrink the physical table file, describes the underlying InnoDB storage mechanisms, and provides practical methods such as OPTIMIZE TABLE, ALTER TABLE, and Online DDL to reclaim space and reorganize the table.

ALTER TABLEDELETEDatabase Maintenance
0 likes · 7 min read
Why MySQL DELETE Does Not Reduce Table File Size and How to Shrink It
dbaplus Community
dbaplus Community
Jul 6, 2021 · Databases

Why Do MySQL Transactions Deadlock and How Can You Prevent It?

This article explains the root causes of MySQL deadlocks in InnoDB, walks through transaction and lock fundamentals, analyzes real‑world log cases, and presents practical solutions such as adjusting isolation levels, using SELECT FOR UPDATE, adding unique indexes, or checking existence before deletion to eliminate deadlocks.

DatabaseDeadlockInnoDB
0 likes · 12 min read
Why Do MySQL Transactions Deadlock and How Can You Prevent It?
New Oriental Technology
New Oriental Technology
Jun 28, 2021 · Databases

InnoDB Architecture and Key Features: A Comprehensive Overview

This article provides a comprehensive overview of InnoDB architecture, covering its memory structures, background threads, and key features like checkpoint mechanisms, double write, and neighbor page flushing, essential for understanding MySQL's default storage engine.

Background ThreadsCheckpoint MechanismDatabase Architecture
0 likes · 12 min read
InnoDB Architecture and Key Features: A Comprehensive Overview
Architect's Alchemy Furnace
Architect's Alchemy Furnace
Jun 27, 2021 · Databases

Why B+Tree Beats B-Tree: Unlocking MySQL InnoDB Performance

This article explains how B+Tree improves disk I/O efficiency in MySQL InnoDB by detailing disk storage fundamentals, sector/block/page concepts, the differences between B‑Tree and B+Tree, and practical search examples that illustrate reduced I/O operations and faster queries.

B+TreeDisk I/OInnoDB
0 likes · 15 min read
Why B+Tree Beats B-Tree: Unlocking MySQL InnoDB Performance
High Availability Architecture
High Availability Architecture
Jun 18, 2021 · Databases

Polar Index: Removing the Global Index Latch to Accelerate InnoDB B‑Tree SMO Operations

The article explains how PolarDB's Polar Index redesigns InnoDB B‑Tree structural modification (SMO) by splitting the operation into two phases, eliminating the global index latch, reducing lock granularity, and achieving up to 11× performance gains in high‑concurrency workloads such as TPCC.

B+TreeDatabase PerformanceIndex Latch
0 likes · 12 min read
Polar Index: Removing the Global Index Latch to Accelerate InnoDB B‑Tree SMO Operations
Top Architect
Top Architect
Jun 16, 2021 · Databases

Understanding MySQL Memory Management and When to Shard Tables

The article explains how MySQL uses different memory areas such as Thread Memory, Sharing, and InnoDB Buffer Pool, describes the impact of large user tables on query performance, and shows that when a table size exceeds the InnoDB buffer pool capacity, sharding becomes necessary.

Database PerformanceInnoDBLinux
0 likes · 17 min read
Understanding MySQL Memory Management and When to Shard Tables
Open Source Linux
Open Source Linux
Jun 10, 2021 · Databases

MySQL vs MariaDB: Real-World Performance Benchmark and Analysis

This article reviews the history of MySQL and MariaDB, describes a test environment, runs insertion, batch, and query benchmarks (with and without indexes), and concludes that MariaDB generally outperforms MySQL in speed and memory usage while highlighting trade‑offs of indexing.

Database PerformanceIndexingInnoDB
0 likes · 9 min read
MySQL vs MariaDB: Real-World Performance Benchmark and Analysis
Aikesheng Open Source Community
Aikesheng Open Source Community
Jun 8, 2021 · Databases

Understanding Table Locks in MySQL When Using INSERT INTO SELECT and the Impact of Isolation Levels

The article explains why an INSERT INTO SELECT statement can lock an entire InnoDB table in MySQL, demonstrates the lock behavior with transaction examples, and offers two solutions—adding an index on the filtered column and adjusting the transaction isolation level—to avoid table‑wide blocking.

INSERT SELECTIndexInnoDB
0 likes · 13 min read
Understanding Table Locks in MySQL When Using INSERT INTO SELECT and the Impact of Isolation Levels
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jun 5, 2021 · Databases

How Many Rows Can a MySQL InnoDB B+Tree Store?

This article explains InnoDB's storage hierarchy (sector, block, page), calculates how many rows fit in a 16KB page, shows how B+‑tree height and pointer counts determine total record capacity, and demonstrates the I/O cost of primary and secondary index lookups using practical MySQL commands.

B+TreeInnoDBMySQL
0 likes · 8 min read
How Many Rows Can a MySQL InnoDB B+Tree Store?
Top Architect
Top Architect
May 26, 2021 · Databases

How MySQL InnoDB Implements ACID: Locks, MVCC, and Logging

This article explains how MySQL InnoDB guarantees the ACID properties—Atomicity, Consistency, Isolation, and Durability—through its lock mechanisms, multi‑version concurrency control, undo/redo logs, buffer pool management, and the interaction between binlog and redo log.

ACIDInnoDBLock
0 likes · 12 min read
How MySQL InnoDB Implements ACID: Locks, MVCC, and Logging
Programmer DD
Programmer DD
May 22, 2021 · Databases

Master MySQL Indexes: B+Tree Deep Dive & Optimization Tips

This article explains MySQL's B‑Tree index fundamentals, compares MyISAM and InnoDB implementations, outlines how B+Tree structures work, and provides practical guidelines for designing effective indexes and tuning MySQL configuration to boost query performance.

B+TreeIndexingInnoDB
0 likes · 27 min read
Master MySQL Indexes: B+Tree Deep Dive & Optimization Tips
Tech Musings
Tech Musings
May 14, 2021 · Databases

How to Diagnose and Fix MySQL Deadlocks Using Locks and Indexes

This article explains why MySQL deadlocks occur in a test module, details table and row lock mechanisms, reproduces the deadlock scenario with two sessions, analyzes lock logs, and provides a solution by adding a composite index to prevent the conflict.

DeadlockIndexInnoDB
0 likes · 19 min read
How to Diagnose and Fix MySQL Deadlocks Using Locks and Indexes
Aikesheng Open Source Community
Aikesheng Open Source Community
May 12, 2021 · Databases

Understanding MySQL Full-Text Indexes: Structure, Auxiliary Tables, Buffer Pool, and Transaction Handling

This article explains MySQL full-text (inverted) indexes, their underlying auxiliary tables, buffer pool configuration, document ID handling, and the special transaction semantics required for inserting and querying indexed data, providing practical SQL examples and performance considerations.

Full-Text IndexInnoDBMySQL
0 likes · 9 min read
Understanding MySQL Full-Text Indexes: Structure, Auxiliary Tables, Buffer Pool, and Transaction Handling
dbaplus Community
dbaplus Community
May 9, 2021 · Databases

Why MySQL Index Merge Triggers Deadlocks and How to Fix Them

This article examines a real‑world MySQL deadlock caused by the Index Merge optimizer, explains InnoDB's lock‑on‑index mechanism, walks through the deadlock logs, and presents four practical solutions including force‑index hints, disabling Index Merge, creating a composite index, and a two‑step update approach.

DeadlockInnoDBMySQL
0 likes · 15 min read
Why MySQL Index Merge Triggers Deadlocks and How to Fix Them
Architect's Alchemy Furnace
Architect's Alchemy Furnace
May 9, 2021 · Databases

Master MySQL Transaction Isolation: From Dirty Reads to Phantom Reads with Live Examples

This article explains MySQL InnoDB’s four transaction isolation levels—Read Uncommitted, Read Committed, Repeatable Read, and Serializable—detailing the phenomena of dirty reads, non‑repeatable reads, and phantom reads, and provides step‑by‑step SQL demonstrations to illustrate each level’s behavior and practical implications.

InnoDBMySQLTransaction Isolation
0 likes · 13 min read
Master MySQL Transaction Isolation: From Dirty Reads to Phantom Reads with Live Examples
ITPUB
ITPUB
Apr 30, 2021 · Databases

How Index Pushdown Cuts Unnecessary Table Lookups in MySQL

This article explains MySQL's table‑lookup (回表) process, the difference between primary‑key and secondary indexes, and how the index‑pushdown feature introduced in MySQL 5.6 reduces unnecessary lookups by filtering rows directly in the index.

Index PushdownInnoDBMySQL
0 likes · 7 min read
How Index Pushdown Cuts Unnecessary Table Lookups in MySQL
Architecture Digest
Architecture Digest
Apr 25, 2021 · Databases

MySQL Lock Types and Deadlock Analysis

This article explains MySQL's lock granularity (table, row, page), the different lock modes such as next‑key, gap and record locks, illustrates common deadlock scenarios with detailed SQL examples, and discusses InnoDB's deadlock prevention strategies and best‑practice solutions.

DeadlockInnoDBLock
0 likes · 14 min read
MySQL Lock Types and Deadlock Analysis
Liangxu Linux
Liangxu Linux
Apr 24, 2021 · Databases

Understanding MySQL Lock Types and How to Prevent Deadlocks

This article explains MySQL's table, row, and page lock levels, describes next‑key, gap, and record locks, illustrates common deadlock scenarios with detailed SQL examples, and outlines InnoDB's lock acquisition and deadlock‑prevention strategies to help developers avoid concurrency issues.

DatabaseDeadlockInnoDB
0 likes · 14 min read
Understanding MySQL Lock Types and How to Prevent Deadlocks
Top Architect
Top Architect
Apr 21, 2021 · Databases

How Many Rows Can a Single InnoDB B+ Tree Store?

This article explains the storage units of InnoDB, calculates how many rows a B+‑tree leaf page can hold, derives the total record capacity for trees of different heights, and shows how to determine the actual B+‑tree height in a MySQL table using page metadata.

B+TreeInnoDBMySQL
0 likes · 9 min read
How Many Rows Can a Single InnoDB B+ Tree Store?
Architect
Architect
Apr 15, 2021 · Databases

InnoDB B+ Tree Capacity and Height: How Many Rows Can It Store?

This article explains how InnoDB’s 16 KB pages form B+‑tree indexes, calculates the number of rows a tree can hold at different heights, shows how to determine the tree’s height from the tablespace file, and why MySQL prefers B+ trees for indexing.

B+TreeInnoDBMySQL
0 likes · 9 min read
InnoDB B+ Tree Capacity and Height: How Many Rows Can It Store?
Architecture Digest
Architecture Digest
Apr 9, 2021 · Databases

How Many Rows Can an InnoDB B+ Tree Store?

This article explains the storage units of InnoDB, calculates how many rows a B+‑tree can hold based on page size, record size and pointer size, demonstrates how to determine the tree height from the tablespace file, and summarizes the impact on query I/O.

B+TreeDatabase StorageInnoDB
0 likes · 10 min read
How Many Rows Can an InnoDB B+ Tree Store?
Java Backend Technology
Java Backend Technology
Apr 4, 2021 · Databases

Mastering MySQL Lock Types and Deadlock Prevention

This article explains MySQL's three lock levels, the algorithms behind next‑key, gap, and record locks, illustrates common deadlock scenarios with real SQL examples, and outlines InnoDB's lock‑prevention strategies to help developers avoid and resolve deadlocks.

DatabaseDeadlockInnoDB
0 likes · 15 min read
Mastering MySQL Lock Types and Deadlock Prevention
Code Ape Tech Column
Code Ape Tech Column
Mar 30, 2021 · Databases

Unlock MySQL Performance: Deep Dive into B+Tree Indexes and Optimization

This article explains the fundamentals of MySQL indexes, the B+Tree data structure, differences between MyISAM and InnoDB implementations, practical tips for creating effective composite indexes, and essential server configuration and SQL tuning techniques to dramatically improve query performance.

B+TreeDatabaseOptimizationIndexDesign
0 likes · 29 min read
Unlock MySQL Performance: Deep Dive into B+Tree Indexes and Optimization
Java Interview Crash Guide
Java Interview Crash Guide
Mar 26, 2021 · Databases

Understanding MySQL InnoDB Locks: Types, Isolation, and MVCC Explained

This article explains the concept of locks in computing and databases, compares InnoDB and MyISAM storage engines, details transaction isolation phenomena such as dirty reads, non‑repeatable reads and phantom reads, and explores InnoDB lock types, lock algorithms, intention locks, auto‑increment lock modes, and MVCC mechanisms.

Database LocksInnoDBMVCC
0 likes · 13 min read
Understanding MySQL InnoDB Locks: Types, Isolation, and MVCC Explained
Selected Java Interview Questions
Selected Java Interview Questions
Mar 18, 2021 · Databases

MySQL Lock Types and Deadlock Analysis

This article explains MySQL's lock levels (table, page, row), the next‑key, gap, and record lock algorithms, illustrates common deadlock scenarios with detailed session examples, and discusses InnoDB's deadlock prevention strategies and practical solutions for avoiding lock conflicts.

DatabaseDeadlockInnoDB
0 likes · 16 min read
MySQL Lock Types and Deadlock Analysis
360 Tech Engineering
360 Tech Engineering
Mar 12, 2021 · Databases

Comprehensive Overview of the InnoDB Lock System in MySQL

This article provides a detailed explanation of MySQL InnoDB's lock system, covering lock granularity, shared and exclusive locks, intention and auto‑increment locks, various row‑lock types, deadlock scenarios with examples, and the internal representation of locks in the engine.

DatabaseDeadlockInnoDB
0 likes · 22 min read
Comprehensive Overview of the InnoDB Lock System in MySQL
Tencent Database Technology
Tencent Database Technology
Mar 8, 2021 · Databases

Introduction to the InnoDB Lock Module and Its Performance Optimizations

This article provides a comprehensive overview of MySQL InnoDB's lock subsystem, describing its data structures, lock compatibility matrices, lock/unlock workflows, lock splitting, inheritance and migration, and presents several optimization techniques such as avoiding lock_sys mutex, asynchronous deadlock detection, and lock_sys mutex sharding to alleviate contention in MySQL 5.7 and later versions.

InnoDBLock ManagerMySQL
0 likes · 13 min read
Introduction to the InnoDB Lock Module and Its Performance Optimizations
Aikesheng Open Source Community
Aikesheng Open Source Community
Mar 5, 2021 · Databases

Effect of innodb_log_buffer_size on Redo Log I/O in MySQL

This article experimentally demonstrates how increasing MySQL's innodb_log_buffer_size reduces redo‑log write I/O, showing fewer write operations but similar total data volume, and explains why performance gains may be subtle in typical virtual‑machine storage environments.

I/O performanceInnoDBLog Buffer
0 likes · 4 min read
Effect of innodb_log_buffer_size on Redo Log I/O in MySQL
ITPUB
ITPUB
Jan 28, 2021 · Databases

Why MySQL Index Merge Triggers Deadlocks and How to Fix It

This article explains how MySQL's index‑merge optimization can cause row‑level deadlocks during inventory updates, analyzes the lock sequence and deadlock logs, and presents practical solutions such as forcing a specific index, disabling index‑merge, and creating a composite index.

DeadlockInnoDBMySQL
0 likes · 15 min read
Why MySQL Index Merge Triggers Deadlocks and How to Fix It
Alibaba Cloud Developer
Alibaba Cloud Developer
Jan 22, 2021 · Databases

Why Do MySQL Deadlocks Occur and How to Prevent Them?

This article examines the root causes of MySQL deadlocks in online services, explains transaction and lock mechanisms such as UndoLog and RedoLog, analyzes real‑world cases, and presents practical strategies—including isolation level adjustments and pre‑delete checks—to avoid and resolve deadlock issues.

DatabaseDeadlockInnoDB
0 likes · 11 min read
Why Do MySQL Deadlocks Occur and How to Prevent Them?
Aikesheng Open Source Community
Aikesheng Open Source Community
Jan 19, 2021 · Databases

MySQL 8.0.23 New Features Overview

The article reviews MySQL 8.0.23's maintenance release, detailing new features such as invisible columns, query attributes, security enhancements, InnoDB auto‑extend size, replication terminology changes, X protocol improvements, and various deprecations, providing code examples and links to official documentation.

8.0.23InnoDBInvisible Columns
0 likes · 10 min read
MySQL 8.0.23 New Features Overview
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jan 6, 2021 · Databases

Understanding MySQL Architecture: Layers, Components, and Storage Engines

This article explains the complete MySQL architecture, covering its connection, service, storage‑engine, and system‑file layers, the role of each component such as connection pools, query cache, parser, optimizer, executor, and the differences between InnoDB and MyISAM, providing practical insights for developers and interview preparation.

Database ArchitectureInnoDBMyISAM
0 likes · 13 min read
Understanding MySQL Architecture: Layers, Components, and Storage Engines
Beike Product & Technology
Beike Product & Technology
Jan 6, 2021 · Databases

Analyzing MySQL Deadlock Cases and Prevention Strategies

This article investigates a MySQL InnoDB deadlock observed during a holiday period, explains how gap locks and next‑key locks on a composite index cause mutual waiting, reproduces the issue with large test data, and offers practical guidelines to avoid similar deadlocks in production environments.

DeadlockGap LockInnoDB
0 likes · 12 min read
Analyzing MySQL Deadlock Cases and Prevention Strategies
Code Ape Tech Column
Code Ape Tech Column
Dec 31, 2020 · Databases

Understanding MySQL Transactions: Isolation Levels, MVCC, and Best Practices

This article explains MySQL transaction fundamentals, covering ACID concepts, isolation levels, MVCC implementation, transaction start methods, and practical examples that illustrate how InnoDB ensures atomicity, consistency, isolation, and durability while avoiding common pitfalls such as dirty reads and long‑running transactions.

DatabaseInnoDBIsolation Level
0 likes · 23 min read
Understanding MySQL Transactions: Isolation Levels, MVCC, and Best Practices
Top Architect
Top Architect
Dec 24, 2020 · Databases

Understanding MySQL Indexes: B+Tree Structure, Implementation, and Optimization

This article explains why MySQL uses B+‑tree indexes, describes the principles of B‑tree and B+‑tree structures, compares MyISAM and InnoDB index implementations, and provides practical optimization tips such as using auto‑increment primary keys, the left‑most prefix rule, and proper configuration settings.

B+TreeIndexInnoDB
0 likes · 22 min read
Understanding MySQL Indexes: B+Tree Structure, Implementation, and Optimization
Architect
Architect
Dec 19, 2020 · Databases

Understanding MySQL Indexes: B+ Tree Principles and Optimization

This article explains why MySQL uses B+ trees for indexing, describes the underlying principles of various index types, compares MyISAM and InnoDB implementations, and provides practical optimization guidelines such as using auto‑increment primary keys, left‑most prefix rules, and configuration tuning.

B+TreeIndexInnoDB
0 likes · 22 min read
Understanding MySQL Indexes: B+ Tree Principles and Optimization
Programmer DD
Programmer DD
Dec 19, 2020 · Databases

Master MySQL Locks: Isolation Levels, Types, and Deadlock Solutions

This article explains MySQL locking mechanisms, covering lock concepts, isolation level interactions, lock granularity (row, table, page), lock types (shared, exclusive, record, gap, next-key), InnoDB row‑lock implementation, deadlock causes and remedies, and the differences between optimistic and pessimistic locking.

Database ConcurrencyInnoDBIsolation Levels
0 likes · 10 min read
Master MySQL Locks: Isolation Levels, Types, and Deadlock Solutions
Aikesheng Open Source Community
Aikesheng Open Source Community
Dec 17, 2020 · Operations

Root Cause Analysis of MySQL "Opening tables" Stalls Caused by Poor Disk Write Performance and InnoDB Redo Log Flush

The article investigates why a MySQL instance experiences frequent "Opening tables" states, analyzing stack traces, identifying a data dictionary lock held by the dict_stats_thread, and concluding that slow disk writes trigger InnoDB's synchronous dirty‑page flush, blocking many operations.

Disk I/OInnoDBMySQL
0 likes · 14 min read
Root Cause Analysis of MySQL "Opening tables" Stalls Caused by Poor Disk Write Performance and InnoDB Redo Log Flush
Senior Brother's Insights
Senior Brother's Insights
Dec 8, 2020 · Databases

How MySQL Locks DELETE and SELECT: MVCC, Isolation Levels & Lock Types

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

InnoDBIsolation LevelsMVCC
0 likes · 15 min read
How MySQL Locks DELETE and SELECT: MVCC, Isolation Levels & Lock Types
ITPUB
ITPUB
Dec 4, 2020 · Databases

Mastering MySQL Binlog, Undo Log, Redo Log, and ChangeBuffer

This comprehensive guide explains MySQL's binary log, undo log, redo log, and ChangeBuffer, covering their concepts, purposes, recording formats, flush timing, recovery processes, and how they interact during transactions and crash‑safe recovery.

ChangeBufferDatabaseRecoveryInnoDB
0 likes · 21 min read
Mastering MySQL Binlog, Undo Log, Redo Log, and ChangeBuffer
ITPUB
ITPUB
Nov 23, 2020 · Databases

Eliminating InnoDB Adaptive Hash Index Lock Contention for Faster Queries

The article examines the hidden lock‑contention issue in InnoDB’s Adaptive Hash Index (AHI) observed during high‑concurrency sysbench runs, explains why multiple threads block on the AHI hash table’s exclusive lock, and presents a lightweight fallback optimization that checks the lock before building AHI, reducing lock wait time and stabilizing QPS performance.

Adaptive Hash IndexDatabase InternalsInnoDB
0 likes · 9 min read
Eliminating InnoDB Adaptive Hash Index Lock Contention for Faster Queries
Laravel Tech Community
Laravel Tech Community
Nov 15, 2020 · Databases

MySQL Lock Types and Deadlock Causes with Practical Examples

This article explains MySQL's three lock levels—table, row, and page—describes next‑key, gap, and record locks, analyzes why deadlocks occur, and provides multiple real‑world examples and prevention strategies, including code snippets for reproducible scenarios.

DatabaseDeadlockInnoDB
0 likes · 12 min read
MySQL Lock Types and Deadlock Causes with Practical Examples
ITPUB
ITPUB
Nov 12, 2020 · Databases

How Vivo Scaled to Billions of Records: Sharding and InnoDB Compression Strategies

This article details how Vivo's cloud service tackled explosive data growth by applying horizontal and vertical sharding, routing‑table based dynamic expansion, and MySQL InnoDB compression, providing step‑by‑step guidance, performance results, and practical recommendations for large‑scale database deployments.

Database ScalingInnoDBMySQL
0 likes · 16 min read
How Vivo Scaled to Billions of Records: Sharding and InnoDB Compression Strategies
Architecture Digest
Architecture Digest
Nov 10, 2020 · Databases

MySQL Lock Types, Deadlock Causes, and Prevention Strategies

This article explains MySQL's lock levels, describes various lock algorithms, presents multiple deadlock scenarios with SQL examples, analyzes the root causes, and outlines InnoDB's deadlock prevention mechanisms and detection methods for developers dealing with concurrency issues.

InnoDBLock TypesMySQL
0 likes · 15 min read
MySQL Lock Types, Deadlock Causes, and Prevention Strategies
ITPUB
ITPUB
Nov 5, 2020 · Databases

Why Does MySQL 5.7 Throw Duplicate‑Key Errors After an Auto‑Increment Upgrade?

After upgrading a critical MySQL 5.6 table to 5.7, the system began reporting duplicate‑key errors on master, replica and read‑only instances due to unexpected changes in the AUTO_INCREMENT value, prompting a deep kernel investigation, bug analysis, on‑site reproduction, and practical mitigation steps.

Duplicate KeyInnoDBMySQL
0 likes · 12 min read
Why Does MySQL 5.7 Throw Duplicate‑Key Errors After an Auto‑Increment Upgrade?
ITPUB
ITPUB
Nov 5, 2020 · Databases

Inside MySQL InnoDB: My Interview Journey and Development Insights

The author recounts his 2012 MySQL interview experience, describes the global InnoDB team structure, outlines the bug‑fix and feature‑development workflow, lists key contributions such as spatial indexes and transparent encryption, and reflects on leaving Oracle for Tencent Cloud.

Database DevelopmentInnoDBMySQL
0 likes · 9 min read
Inside MySQL InnoDB: My Interview Journey and Development Insights