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

Project relevant fields in sampling query

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

      Currently the sampling estimator will do a random collection scan and store the entire document in memory. If CBR performs some initial analysis of the query or set of plans to determine the same of referenced fields in all expressions/indexes, we could pass this set to the sampling estimator. Then we could use this to construct a sampling query which only projects relevant fields, reducing the memory footprint of the sample stored in memory.

            Assignee:
            Unassigned Unassigned
            Reporter:
            ben.shteinfeld@mongodb.com Ben Shteinfeld
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: