-
Type: Task
-
Resolution: Unresolved
-
Priority: 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.