You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if this code runs concurrently you will get a transaction aborted error instead of a nil error. This happens because SelectOrInsert does this inside of a retry loop:
which is OK unless you are doing this inside a transaction, the moment you hit an error the transaction will be aborted and the next SELECT will error.
The text was updated successfully, but these errors were encountered:
Say that you have something like this:
if this code runs concurrently you will get a transaction aborted error instead of a nil error. This happens because SelectOrInsert does this inside of a retry loop:
which is OK unless you are doing this inside a transaction, the moment you hit an error the transaction will be aborted and the next SELECT will error.
The text was updated successfully, but these errors were encountered: