Use $lookup aggregation pipeline stage for eager loading

XMLWordPrintableJSON

    • Doctrine Eager Pipeline Lookups
    • None
    • To Do
    • 0
    • 0
    • 0
    • 100
    • None
    • None

      Doctrine MongoDB ODM allows avoiding the n+1 query problem by eagerly loading (called "priming" in ODM) referenced objects. This works by loading the original object, then firing off a single query to load references.

      With $lookup available in aggregation pipeline, eager loading can be simplified even more by leveraging $lookup and avoiding an extra query.

            Assignee:
            Unassigned
            Reporter:
            Andreas Braun
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              None
              None
              None
              None
              None