Skip to content
RED SAGSkills
medium10 pts · first answer countstransactionsconstraintsconcurrency

Check-then-insert creates duplicates

Signup code does SELECT to see if an email exists, then INSERTs if not. Under load, duplicate accounts appear. What is the reliable fix?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions