
Chris Ellis
Nexteam
Chris is a computing and electronics geek, who loves working with Open Source software. He is a jack of all trades consultant usually spending his time engineering systems with PostgreSQL, Java and Linux. Now and then he gets time to design some electronics often involving ESP32s, Raspberry Pi CM4s and LED badges.
POSETTE 2025 Talk
Fun With UUIDs
UUIDs have a bad reputation, mostly based on randomly allocated UUIDs effect on indexes. But UUIDs also give us 16 bytes of space to play with, which can be to our advantage. We can use the space of UUIDs to structure and encode data into our identifiers. This can be really useful for multi-tenant applications, for sharding or paritioning. UUIDs can also help improve you web app security, by not leaking sequentially allocated ids.
We'll take a look at index performance concerns with randomly allocated UUIDs, sequential ids and sensibly structured UUIDs.
Seeing how we can go about extracting information from these UUIDs and how to build these UUIDs inside PostgreSQL, and how we can look at the performance of these functions.
Finally looking at adding support for bitwise operations on UUIDs using an extension.
Add livestream to calendar Register (optional)Past Talks
-
Even JSONB In Postgres Needs Schemas (POSETTE 2024)
Podcast Appearances
-
Becoming expert at using PostgreSQL with Chris Ellis
Join the conversation
Use the hashtag #PosetteConf