mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-734: Possibility to fetch all outstanding proxies of an Entity #902
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 (Aug 7, 2010).
Originally assigned to: @guilhermeblanco on GitHub.
Jira issue originally created by user @beberlei:
For performance reasons (solving the N1 problem) it might be necessary to load all proxy instances of a given type:
However say we could do something like:
This doesnt make too much sense in this case because we could use a fetch join with DQL. However you easily get to the point where you have a query like:
In this case the SQL generated is VERY huge and just the number of joins could cause an performance overhead. In general its better to keep the number of joins as small as possible, a solution here would optimize for the engineer and reporter being both instances of User:
We could even make this nicer for using Queries:
@doctrinebot commented on GitHub (Mar 16, 2011):
Comment created by @beberlei:
Implemented, but in another semantical way. Batching of eager loads of FETCH=EAGER associations aswell as AbstactQuery::setFetchMode($className, $assocName, $fetchMode) function to set this case-by-case for DQL.
@doctrinebot commented on GitHub (Mar 16, 2011):
Issue was closed with resolution "Fixed"
@doctrinebot commented on GitHub (Jul 30, 2013):
Comment created by @guilhermeblanco:
Closed
@doctrinebot commented on GitHub (Jul 30, 2013):
Comment created by koc:
I cann't find commit/branch where it was fixed