2 ms·
In real world situations you already need to go to the database to do validation. For example to check that a username is not already taken. And because of the
by bjourne 13y ago
In real world situations you already need to go to the database to do validation. For example to check that a username is not already taken. And because of the race condition, you still need to be prepared to handle a duplicate-key integrity error when actually trying to create the user row.