Unique Constraints in MariaDB - Let Concurrent Requests Compete at the Database
Two registration requests ask for the same username at nearly the same time. Each request checks the database, and each sees that the name appears available. If both are then allowed to insert a row, which layer makes s…
Read article