DEV Community

Discussion on: How to avoid deadlock in DB transaction? Queries order matter!

Collapse
 
pablotrinidad profile image
Pablo Trinidad • Edited

How would you resolve the deadlock if primary keys are UUIDs instead?

(thank you so much for the content btw ❤️)

Collapse
 
eazylaykzy profile image
Adeleke Adeniji

In this case, have you tried using the created_at? Could come in handy.