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

Use a smarter batch size for small samples

    • Query Optimization
    • ALL
    • Query 2017-08-21, Query 2017-09-11

      In cases where we can use the optimized sampling from a random cursor, the DocumentSourceCursor will still use the default batch size. This can significantly slow down small sample sizes.

      Unfortunately, we cannot just pass down a limit to the DocumentSourceCursor, since the random cursor may give back duplicate documents, in which case we'd need to ask for more.

            Assignee:
            backlog-query-optimization [DO NOT USE] Backlog - Query Optimization
            Reporter:
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            3 Vote for this issue
            Watchers:
            25 Start watching this issue

              Created:
              Updated: