Uploaded image for project: 'PHP ORMs'
  1. PHP ORMs
  2. PHPORM-37

Use $lookup aggregation pipeline stage for eager loading

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

      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 Unassigned
            Reporter:
            andreas.braun@mongodb.com Andreas Braun
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: