The perils of UUID primary keys in SQLite

Software Development, Databases & Storage, Performance Engineering(andersmurphy.com)view on HackerNews
SQLiteUUIDprimary keysperformancedatabasesstorageindexingclustering.

Author: emschwartz

Date: 6/5/2026

Article Summary:
This article discusses the performance implications of using UUID primary keys in SQLite databases, specifically the extra paging caused by unordered UUIDs and how to mitigate it using time-ordered UUIDs.