Brent 11/29/2017

Optimised UUIDs in mysql

Read Original

This technical article details the performance drawbacks of storing UUIDs as CHAR(36) in MySQL and proposes a two-part optimization: storing UUIDs as binary data in a BINARY field for better indexing, and bit-shifting time-based bits (in UUIDv1) to create ordered data for superior index performance on large datasets. It includes benchmark comparisons and discusses when to use UUIDs.

Optimised UUIDs in mysql

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser