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

Consider a higher initial mongot batchSize for $search queries with a blocking stage

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Integration

      In SPM-3509, we added logic to detect when a $search query will need all results from mongot due to a post-$search blocking stage ($sort/$group). When that is the case, our strategy for receiving all documents from mongot is exponentially increase the batchSize per batch, with a starting value of 101, and always prefetch the next batch from mongot.

      We could consider starting with a higher initial batchSize value than 101 since we know we'll need all the documents. It may be worth running some benchmarks to check what starting value is most efficient. 

            Assignee:
            Unassigned Unassigned
            Reporter:
            will.buerger@mongodb.com Will Buerger
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: