mercredi 27 décembre 2017

How's exactly Laravel dealing with transaction deadlocks?

Please look at the first comment at the function handleTransactionException (framework/src/Illuminate/Database/Concerns/ManagesTransactions.php:61)

It says following: «On a deadlock, MySQL rolls back the entire transaction so we can't just retry the query. We have to throw this exception all the way out and let the developer handle it in another way. »

Does it comment correct? Official documentation says that Laravel can dealing with deadlocks automatically and I am supposed to do nothing in that case.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire