easyStudy question · answer published in System Design interview questions, so no pointssqlconcurrency
Duplicate emails despite a check
Signup code runs SELECT to check whether the email exists and then INSERTs the user. Duplicate accounts still appear under heavy traffic. What is the right fix?
Discussion 0
Join free to post in the discussion.
Related questions
- Stopping SQL injectionBackend Developer
- Purpose of a database indexBackend Developer
- Rows returned by a LEFT JOINBackend Developer
- What a foreign key enforcesBackend Developer
- Atomicity in a money transferBackend Developer
- COUNT and AVG with NULLsBackend Developer
- Filtering grouped resultsBackend Developer
- What EXPLAIN tells youBackend Developer