Tagged articles

InnoDB index

2 articles · Page 1 of 1
Java Architect Handbook
Java Architect Handbook
Jul 16, 2026 · Databases

Why Using Snowflake IDs or UUIDs as MySQL Primary Keys Can Backfire

An in‑depth MySQL benchmark compares auto‑increment, UUID, and Snowflake‑style random long keys, showing how index structure, insert latency, and page fragmentation differ, and explains why auto‑increment keys usually outperform the others while also highlighting the security and lock‑contention drawbacks of sequential IDs.

InnoDB indexMySQLSnowflake ID
0 likes · 12 min read
Why Using Snowflake IDs or UUIDs as MySQL Primary Keys Can Backfire