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

$limit should push down into the PlanStage layer, rather than coalescing with DocumentSourceCursor

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.3.1
    • Aggregation Framework
    • Fully Compatible
    • Query 2019-06-03, Query 2019-10-07, Query 2019-10-21
    • 136

    Description

      DocumentSourceCursor will absorb a $limit stage and manually apply the limit as it is batching documents. However, we should consider instead pushing this limit to the query system similar to what we do for $match, $sort, etc..

      Attachments

        Issue Links

          Activity

            People

              david.storch@mongodb.com David Storch
              nicholas.zolnierz@mongodb.com Nicholas Zolnierz
              Votes:
              3 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: