DDC-952: Several features to batch eager selects more efficently #5484

Closed
doctrinebot opened this Issue Dec 27, 2010 · 3 comments

2 participants

@doctrinebot

Jira issue originally created by user @beberlei:

This ticket aggregates several strategies to optimize batching of eager selects.

@doctrinebot

Comment created by @beberlei:

Requirements for batching of eager loads:

  1. Since we are using an IN() query for this we can only support this feature for entities that have a single column primary key.
  2. If we want to support composite keys we need to build it as WHERE ( (id1 = ? AND id2 = ?) OR (id1 = ? AND id2 = ?)) but this is currently not possible with the way how internally the $criteria array is used.
@doctrinebot

Comment created by @beberlei:

Next item to think about: What if an exception or event breaks the flow and "triggerEagerLoads()" is never called?

@doctrinebot

Issue was closed with resolution "Fixed"

@beberlei beberlei was assigned by doctrinebot Dec 6, 2015
@doctrinebot doctrinebot added this to the 2.2 milestone Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment