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

    • Fully Compatible
    • Query 2019-06-03, Query 2019-10-07, Query 2019-10-21
    • 136

      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..

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

              Created:
              Updated:
              Resolved: