-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Execution
-
None
-
None
-
None
-
None
-
None
-
None
-
None
When maxEstimatedScanBytes is enabled, the server rejects queries whose plans require an unbounded COLLSCAN on collections whose logical data size exceeds the configured threshold.
A query can avoid rejection in two ways:
- An effective positive $limit bounds the collection scan.
- A $natural hint explicitly overrides the rejection.
Currently, metrics.query.maxEstimatedScanBytes.rejectedAndOverridden records $natural overrides but does not record queries allowed because of an effective $limit.
Update the metrics so that $limit-based exemptions are accounted for. If rejectedAndOverridden is intended to remain specific to $natural hints This can be rejected.
- is related to
-
SERVER-130147 Test maxEstimatedScanBytes with aggregation pipelines with $limit stages
-
- Closed
-