Tag

Database Index

0 views collected around this technical thread.

Java Captain
Java Captain
Mar 22, 2025 · Databases

Performance Comparison of UUID, Auto‑Increment, and Random Keys in MySQL

This article investigates MySQL's recommendation against using UUID or random Snowflake IDs as primary keys by creating three tables with different key strategies, running Spring Boot/JDBC performance tests, analyzing index structures, and concluding that auto‑increment keys offer superior insertion efficiency and fewer drawbacks.

Database IndexJDBCMySQL
0 likes · 10 min read
Performance Comparison of UUID, Auto‑Increment, and Random Keys in MySQL
Architecture Digest
Architecture Digest
Apr 12, 2024 · Databases

Performance Comparison of Auto‑Increment, UUID, and Random Keys in MySQL

This article analyzes why MySQL recommends auto‑increment primary keys over UUIDs or random snowflake IDs by designing three tables, running insert‑select benchmarks with Spring Boot's JdbcTemplate, presenting the test results, and discussing the underlying index‑structure impacts and trade‑offs.

Database IndexMySQLUUID
0 likes · 10 min read
Performance Comparison of Auto‑Increment, UUID, and Random Keys in MySQL
Aikesheng Open Source Community
Aikesheng Open Source Community
Dec 20, 2023 · Databases

Analyzing and Resolving Slow Query Plan Issues in OceanBase 3.2.3

This article presents a step‑by‑step investigation of a SELECT statement that became 1000× slower in OceanBase 3.2.3 BP8, explains why the optimizer chose an inefficient I5 index, describes the plan‑expiration logic, and provides reproducible scripts and practical recommendations for fixing the problem.

Database IndexOceanBasePerformance Tuning
0 likes · 19 min read
Analyzing and Resolving Slow Query Plan Issues in OceanBase 3.2.3
Java Architect Essentials
Java Architect Essentials
Jun 20, 2023 · Databases

Performance Comparison of Auto‑Increment, UUID, and Random Keys in MySQL

This article analyzes why MySQL recommends auto_increment primary keys over UUID or non‑sequential Snowflake IDs by creating three tables, running Spring Boot/JdbcTemplate performance tests, and examining index structures, lock contention, and fragmentation to guide optimal primary‑key selection.

Database IndexMySQLSpring Boot
0 likes · 9 min read
Performance Comparison of Auto‑Increment, UUID, and Random Keys in MySQL
Top Architect
Top Architect
Dec 19, 2022 · Databases

Performance Comparison of Auto‑Increment, UUID, and Random Keys in MySQL

This article investigates MySQL's recommendation against using UUID or non‑sequential keys, builds three tables with auto‑increment, UUID, and random (snowflake) primary keys, runs insertion and query benchmarks using Spring Boot and JdbcTemplate, analyzes index structures, and discusses the advantages and drawbacks of each approach.

Database IndexMySQLUUID
0 likes · 11 min read
Performance Comparison of Auto‑Increment, UUID, and Random Keys in MySQL
Top Architect
Top Architect
Oct 25, 2022 · Databases

Understanding Database Indexes: Storage Principles, Binary Search, and Optimization Techniques

This article explains how databases store data on various storage media, why indexes dramatically speed up queries through sorted structures and binary search, discusses different index types such as clustered indexes, and outlines common SQL optimization practices while warning against excessive indexing and typical pitfalls.

Database IndexPerformance TuningSQL Optimization
0 likes · 12 min read
Understanding Database Indexes: Storage Principles, Binary Search, and Optimization Techniques
Top Architect
Top Architect
Jan 11, 2022 · Databases

Understanding InnoDB Primary‑Key B+Tree Capacity and Height

This article explains how InnoDB stores data in 16 KB pages, calculates how many rows a B+Tree index can hold, shows how to determine the tree height from the page level, and answers why MySQL uses B+Tree rather than other tree structures.

B+ TreeDatabase IndexInnoDB
0 likes · 10 min read
Understanding InnoDB Primary‑Key B+Tree Capacity and Height
Wukong Talks Architecture
Wukong Talks Architecture
Dec 22, 2021 · Databases

Understanding MySQL Indexes: Types, Structures, and Performance Impact

This article introduces MySQL indexes, explains why they are needed, compares B+Tree and hash index structures, describes how indexes improve query performance, outlines their limitations, shows how to create single‑ and multi‑column indexes, and discusses the trade‑offs of using them.

B+ TreeDatabase IndexHash Index
0 likes · 10 min read
Understanding MySQL Indexes: Types, Structures, and Performance Impact
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Sep 26, 2021 · Databases

Optimizing MySQL Deep Pagination for Millions of Rows: Four Practical Approaches

This article explains why MySQL LIMIT with large offsets becomes slow, analyzes the execution flow, and presents four optimization techniques—including subquery, INNER JOIN, tag‑record, and BETWEEN…AND…—with real‑world performance numbers and sample SQL code.

Database IndexMySQLSQL Optimization
0 likes · 9 min read
Optimizing MySQL Deep Pagination for Millions of Rows: Four Practical Approaches
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+ TreeDatabase IndexInnoDB
0 likes · 9 min read
InnoDB B+ Tree Capacity and Height: How Many Rows Can It Store?
Architect's Tech Stack
Architect's Tech Stack
Mar 23, 2021 · Databases

Performance Comparison of Auto‑Increment, UUID, and Snowflake IDs as MySQL Primary Keys

This article evaluates the insertion speed and index impact of three MySQL primary‑key strategies—auto‑increment, UUID, and Snowflake‑generated long IDs—by building identical tables, running a Spring Boot/JdbcTemplate benchmark, and analyzing the resulting performance and structural differences.

Database IndexMySQLSnowflake ID
0 likes · 9 min read
Performance Comparison of Auto‑Increment, UUID, and Snowflake IDs as MySQL Primary Keys
Architecture Digest
Architecture Digest
Sep 11, 2020 · Databases

Performance Comparison of Auto‑Increment, UUID, and Random Keys in MySQL

This article investigates why MySQL recommends auto_increment primary keys over UUID or snowflake IDs by creating three tables with different key strategies, running insertion benchmarks using Spring Boot, and analyzing index structures, performance results, and the trade‑offs of each approach.

Database IndexMySQLUUID
0 likes · 10 min read
Performance Comparison of Auto‑Increment, UUID, and Random Keys in MySQL
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Apr 3, 2020 · Databases

Understanding B+ Tree Indexes in MySQL

This article explains why B+ trees are the dominant data structure for MySQL indexes, compares them with hash tables, linked lists, and skip lists, and details page splits, merges, and how index values map to row records, helping readers master high‑frequency interview questions.

B+ TreeData StructuresDatabase Index
0 likes · 14 min read
Understanding B+ Tree Indexes in MySQL
Java Captain
Java Captain
Jul 10, 2019 · Databases

Understanding Database Index Structures: From Binary Trees to B‑Tree and B+Tree

This article explains how library indexing inspires database indexing, introduces binary search trees, AVL trees, B‑Tree and B+Tree structures, and details InnoDB and MyISAM storage mechanisms, page organization, clustered versus non‑clustered indexes, and practical index‑optimization advice.

B+ TreeB-TreeData Structures
0 likes · 19 min read
Understanding Database Index Structures: From Binary Trees to B‑Tree and B+Tree
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jul 7, 2018 · Databases

Understanding B+ Tree Indexes and Their Impact on Database Performance

This article explains how database indexes are implemented using B+ trees, describing their structure, advantages such as shallow depth and ordered leaf nodes, and how they reduce disk I/O, illustrating calculations of node capacity and emphasizing the importance of index size for performance.

B+ TreeData StructuresDatabase Index
0 likes · 6 min read
Understanding B+ Tree Indexes and Their Impact on Database Performance
Architect
Architect
Feb 20, 2016 · Databases

Understanding GeoHash: Spatial Indexing and Its Application in Proximity Queries

This article explains the GeoHash algorithm, how it converts latitude‑longitude coordinates into hierarchical string codes, the precision trade‑offs of different code lengths, the binary encoding process, the use of space‑filling curves, and practical considerations when applying GeoHash for nearby point‑of‑interest searches.

Database IndexGeoHashGeolocation
0 likes · 9 min read
Understanding GeoHash: Spatial Indexing and Its Application in Proximity Queries