Add deferred queue behaviour to $queue agg stage

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              Catalin Sumanaru
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: