UUIDv7 takes the best of two worlds for distributed systems: auto-incrementing ID and UUIDv4. It keeps page splits and fragmentation out of primary key index, while also maintaining cryptographically secure randomness to prevent insecure direct object reference. (This obsoletes UUIDv4, which only tends to bloat every index and cost more with each write operation.)

https://www.youtube.com/watch?v=JbdvmQ_HgJo

#UUID #UUIDv7 #UUID7 #UUIDv4 #UUID4 #AutoIncrement #ID #database #databases

Auto-Increment vs UUID Explained in 5 Minutes

YouTube

How to Stop AUTO_INCREMENT From Reusing After Restart

Recycled IDs can break your caching.

#mysql #autoincrement #reuse #howto #ids #gotcha

https://www.youtube.com/watch?v=AMm1JExqDbU

How to Stop AUTO_INCREMENT From Reusing After Restart #mysql

YouTube

How to Stop AUTO_INCREMENT Gaps From Breaking IDs

Rollbacks still consume auto increment values.

#mysql #autoincrement #ids #howto #transactions #gotcha

https://www.youtube.com/watch?v=sGsPlUnRt_s

How to Stop AUTO_INCREMENT Gaps From Breaking IDs #transactions

YouTube

Auto-Increment IDs Have GAPS Forever?!

IDs are BROKEN! Failed INSERT consumes the auto-increment ID! User #1, skip #2, User #3! Your IDs have permanent GAPS! This breaks ID-based logic! Watch this chaos!

#sql #sqlbug #autoincrement #primarykey #idgaps #failedinsert #sqlfails #productionbug #sqlshorts #sqlwtf #identitycolumn #dataintegrity

https://www.youtube.com/watch?v=qF3obGJL_MY

Auto-Increment IDs Have GAPS Forever?! #failedinsert

YouTube
DB2 Table ID Increment: Using Sequences and Triggers for Auto-Incrementing IDs
Master DB2 Table ID Increment using sequences & triggers for efficient, automated ID generation. Prevent duplicates & simplify DB admin. #DB2 #Database #SQL #AutoIncrement #Triggers
https://tech-champion.com/database/db2luw/db2-table-id-increment-using-sequences-and-triggers-for-auto-incrementing-ids/
Retrieve DB2 Auto-Increment Key with MyBatis: A Solution for NullPointerExceptions
Efficiently retrieve DB2 auto-increment keys! Learn methods like IDENTITY_VAL_LOCAL() & RETURNING clause, handling multiple insertions & error management. DB2 #autoIncrement #SQL #database #programming
https://tech-champion.com/database/db2luw/retrieve-db2-auto-increment-key-with-mybatis-a-solution-for-nullpointerexceptions/
Hard to Kill: Why Auto-Increment Primary Keys Can Make Data Sync Die Harder | Joche Ojeda