mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-414: Improve Performance of onUpdate Event Listeners #515
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 (Mar 12, 2010).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user @beberlei:
Currently both onUpdate lifecycle events and event listeners trigger the recomputeEntityChangeSets method.
I would suggest to change the event listeners to only recieve a reference of the changeset and not computing the differences for each affected entity. This could improve performance considerably in the onUpdate event case and would be more helpful for users to understand how limited the onUpdate event listener really is.
@doctrinebot commented on GitHub (Mar 12, 2010):
Comment created by @beberlei:
Another valid approach would be to require an explicit call to recomputeEntityChangeSets from an onUpdate listener.
I think both use-cases could be supported.
@doctrinebot commented on GitHub (Mar 12, 2010):
Comment created by @beberlei:
This would be a BC break, so implementation before Beta 1 seems a necessary must
@doctrinebot commented on GitHub (Mar 12, 2010):
Comment created by romanb:
Well, ok, we can still have BC breaks during BETA though, only once we hit RC the API is frozen.
@doctrinebot commented on GitHub (Mar 14, 2010):
Comment created by @beberlei:
Attached is a proposed implementation example
@doctrinebot commented on GitHub (Mar 14, 2010):
Comment created by @beberlei:
Implemented, notes in UPGRADE_TO_2_0:
@doctrinebot commented on GitHub (Mar 14, 2010):
Issue was closed with resolution "Fixed"
@doctrinebot commented on GitHub (Dec 13, 2015):
Imported 1 attachments from Jira into https://gist.github.com/9c43acb2ee7307de0296