The effect of Random UUID on database performance

  Рет қаралды 68,856

Hussein Nasser

Hussein Nasser

Күн бұрын

In this video I whiteboard how UUIDs hurt write (and read performance) when used on secondary and primary indexes. UUIDv4 are the most popular but they are truly random. Compared to snowflakes, ULID or UUIDv7 or even UUIDv1.
0:00 UUIDv4
2:30 B+Tree Indexes and UUID
5:30 Random UUIDv4 Insert Workload
12:40 Ordered Insert Workload (UUID7/ULID, Sequence)
14:00 Shared buffer pool flushes
15:00 Shopify ULID use case
17:00 URL shortner UUIDs?
Discovering Backend Bottlenecks: Unlocking Peak Performance
performance.husseinnasser.com
Fundamentals of Backend Engineering Design patterns udemy course (link redirects to udemy with coupon)
backend.husseinnasser.com
Fundamentals of Networking for Effective Backends udemy course (link redirects to udemy with coupon)
network.husseinnasser.com
Fundamentals of Database Engineering udemy course (link redirects to udemy with coupon)
database.husseinnasser.com
Follow me on Medium
/ membership
Introduction to NGINX (link redirects to udemy with coupon)
nginx.husseinnasser.com
Python on the Backend (link redirects to udemy with coupon)
python.husseinnasser.com
Become a Member on KZbin
/ @hnasr
Buy me a coffee if you liked this
www.buymeacoffee.com/hnasr
Arabic Software Engineering Channel
/ @husseinnasser
🔥 Members Only Content
• Members-only videos
🏭 Backend Engineering Videos in Order
backend.husseinnasser.com
💾 Database Engineering Videos
• Database Engineering
🎙️Listen to the Backend Engineering Podcast
husseinnasser.com/podcast
Gears and tools used on the Channel (affiliates)
🖼️ Slides and Thumbnail Design
Canva
partner.canva.com/c/2766475/6...
Stay Awesome,
Hussein

Пікірлер: 157
Why create Index blocks writes
11:16
Hussein Nasser
Рет қаралды 11 М.
Database Indexing Explained (with PostgreSQL)
18:19
Hussein Nasser
Рет қаралды 295 М.
MEGA BOXES ARE BACK!!!
08:53
Brawl Stars
Рет қаралды 34 МЛН
I CAN’T BELIEVE I LOST 😱
00:46
Topper Guild
Рет қаралды 75 МЛН
⬅️🤔➡️
00:31
Celine Dept
Рет қаралды 52 МЛН
The Lesson About GUID IDs I Learned the Hard Way
15:43
Zoran Horvat
Рет қаралды 27 М.
ULID vs UUID: Which One Should You Use?
3:24
Th30z Code
Рет қаралды 10 М.
Partitioning by ULID | Postgres.FM 077 | #PostgreSQL #Postgres podcast
38:53
How Do Databases Store Tables on Disk? Explained both SSD & HDD
18:56
Hussein Nasser
Рет қаралды 26 М.
B-tree vs B+ tree in Database Systems
31:50
Hussein Nasser
Рет қаралды 49 М.
Best Practices Working with Billion-row Tables in Databases
13:41
Hussein Nasser
Рет қаралды 66 М.
I've been using Redis wrong this whole time...
20:53
Dreams of Code
Рет қаралды 333 М.
Understanding B-Trees: The Data Structure Behind Modern Databases
12:39
What happens before the Backend gets the Request
51:26
Hussein Nasser
Рет қаралды 47 М.
Спутниковый телефон #обзор #товары
0:35
Product show
Рет қаралды 1,8 МЛН
Ультрабюджетная игровая мышь? 💀
1:00