Project relevant fields in sampling query

XMLWordPrintableJSON

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

      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
              Reporter:
              Ben Shteinfeld
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: