MySQL Architecture, Concurrency & Performance Tuning

Server Layers and Storage Engines MySQL is split into three logical layers: Connection & Authentication – handles client hand-shake, privilege checks, SSL, thread pooling. SQL Layer – parses, optimizes, rewrites and executes statements. All built-in functions, views, triggers, stored procedures live here. The query cache was removed in 8.0 ...

Posted on Fri, 05 Jun 2026 17:46:48 +0000 by Jas

MySQL Indexing: Data Structures, Types, and Optimization Techniques

Indexes in MySQL are sorted data structures, typically B+ trees, designed to expedite data retrieval. By organizing data in a sorted manner, MySQL can efficiently locate records using a binary search-like approach, significantly reducing the need for full table scans. Index Data Structures Binary Search Tree (BST) A basic BST organizes data suc ...

Posted on Fri, 15 May 2026 13:53:37 +0000 by pieai

B+Tree Index Concurrency Control and Latch Crabbing

Concurrency Strategy in B+Trees Implementing thread safety in a B+Tree index requires protecting both the internal data of nodes and the structural integrity during split and merge operations. The standard protocol for this is Latch Crabbing, where a thread acquires a latch on a child node and only releases the latch on the parent if the child ...

Posted on Wed, 13 May 2026 03:39:59 +0000 by CUatTHEFINISH

Understanding MySQL Index Data Structures and Algorithm Principles

Database Index Fundamentals and Mathematical Theory The Nature of Indexes The official MySQL definition describes an index as a data structure that enables efficient data retrieval. In essence, an index is simply a carefully organized data structure. Database querying represents one of the most critical operations in any database system. The go ...

Posted on Sat, 09 May 2026 06:47:55 +0000 by nalkari