mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-2179: Transactions should sent in group not chunked #2742
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Nov 29, 2012).
Originally assigned to: @Ocramius on GitHub.
Jira issue originally created by user dlsniper:
In UnitOfWork::commit() it seems that a transaction is done like this:
The question would be, should my webserver have some issues with resources, wouldn't this part of the code be a pain for the DB?
I don't know how mysql, for example, handles sending the transaction in chunks as opposed to sending it in 2/3 statements ( begin ops and commit / revert in case of failure) or in mySQL,l the transaction is evaluated on COMMIT statement only?
If my assumption about how MySQL works, locking everything as soon as the statement is on the server, then shouldn't Doctrine use a internal buffer for sending transactions to the DB driver in order to avoid all sorts of problems that appear in high concurency scenarios?
Best regards.