Do not wait on a locked row
Account row id = 1 in accounts is already locked by another operation. Write a read that tries to lock it for update but, if it is busy, fails immediately instead of waiting. Better to fail fast and retry than to hang.
Sign in to see submission history
Sign inSign in to use AI Mentor
Sign in