Use a smarter batch size for small samples

XMLWordPrintableJSON

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

      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:
              Hana Pearlman
              Reporter:
              Charlie Swanson
              Votes:
              3 Vote for this issue
              Watchers:
              27 Start watching this issue

                Created:
                Updated:
                Resolved: