Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-82128

Add deferred queue behaviour to $queue agg stage

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • ALL
    • QE 2023-10-16, QE 2023-11-13, QE 2023-11-27

      The issue is the fact that DocumentSources do not have open/close() like API, but rather doGetNext() only which makes it complicated to do any prepare work. $querySettings is suffering from this, being able to go into infinite recursion because of it.

      As part of this ticket we will extend the $queue operator to be able to produce elements by invoking a lambda function instead of taking a collection of documents as input.

      This implementation will enable us to rely on this functionality instead of implementing custom solutions as present in:

       

       

            Assignee:
            catalin.sumanaru@mongodb.com Catalin Sumanaru
            Reporter:
            catalin.sumanaru@mongodb.com Catalin Sumanaru
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: