Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-952

Several features to batch eager selects more efficently

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None

      Description

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

        Activity

        Hide
        Benjamin Eberlei added a comment - - edited

        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.

        Show
        Benjamin Eberlei added a comment - - edited 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.
        Hide
        Benjamin Eberlei added a comment -

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

        Show
        Benjamin Eberlei added a comment - Next item to think about: What if an exception or event breaks the flow and "triggerEagerLoads()" is never called?

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Benjamin Eberlei
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: