Details
-
Improvement
-
Resolution: Unresolved
-
Major - P3
-
None
-
None
-
None
-
Query Optimization
Description
As part of SERVER-35043, the implementation of the geoNear command is being transplanted into the aggregation system. The $geoNear stage has never been smart about computing its dependencies and assumes that it needs the entire document.
We could be smarter about the dependencies for a pipeline that begins with $geoNear, however, we would have to be careful with preserving the $meta projections for the geoNear distance and geoNear point if necessary.