Skip to content
Noteshch-log
AboutSupport
< Back to notes

Browse 1 note tagged python.

#python

UUIDv7 for Primary Keys: Better, Not Universal

UUIDv7 improves index locality in SQLite and PostgreSQL, but 128-bit keys still cost more than bigint. Use it when distributed ID generation is required.

#PostgreSQL#database#UUIDv7+2
2026-08-05
Copyright ©2025-2026 hch-log.com. All rights reserved.
Written by Hung-Chih Hsueh ↗ · g3n-data ↗ · All links ↗
Support on Ko-fiAboutPrivacy Policy

Google services settings

Analytics and advertising stay off until you choose.

En中文