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

Allow $count/$size in $graphLookup

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Aggregation Framework
    • None
    • Query Optimization

    Description

      There are many times that you don't need to retrieve the documents from a graphLookup, you only want the number of resulting documents after performing the graphLookup stage, you are throwing away capacity in the process, if you after the graphLookup are going to do a $size operation.

      If the graphLookup could resolve in a number being this number the count of the resulting documents, could be way more easy to retrieve the needed data without having to use so many resources.

      Attachments

        Activity

          People

            backlog-query-optimization Backlog - Query Optimization
            jgl Jose
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated: