db nugget: uuids bloat indexes

Arpit Bhayani

Arpit Bhayani

Aug 25, 2025 • 1 min read


db nugget: uuids bloat indexes.

companies that operate at scale often avoid them for transactional use cases.

moreover, uuids cause inserts to occur in random order, leading to index fragmentation and frequent b-tree rebalancing, which results in higher write latencies.

Arpit Bhayani

Principal Engineer II at Razorpay - building Agent Studio, Ex-staff engg at GCP Memorystore & Dataproc, Creator of DiceDB, ex-Amazon Fast Data, ex-Director of Engg. SRE and Data Engineering at Unacademy. I spark engineering curiosity through my no-fluff engineering videos on YouTube and my courses