-
Type: Improvement
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: 1.8.0-rc0
-
Component/s: None
-
None
-
Environment:Redhat 6.0
-
Fully Compatible
Add ability to hint count commands.
// using explicit command form db.runCommand({count:'test', query:{f:1}, hint:'_id_'}) // using shell helper db.test.find({f:1}).hint('x_1').count()
If there is no predicate for the query given to the count command, the hint will be ignored and the result will be pulled directly from the collection metadata.
- is depended on by
-
JAVA-1344 Allow count to work with query hints
- Closed
- is duplicated by
-
SERVER-10749 Query results differ depending on the utilized index
- Closed
- is related to
-
SERVER-7105 Please provide a way to use $hint for Update/FindAndModify, and/or fix the Query Optimizer
- Closed
-
SERVER-14799 Count with hint doesn't work when hint is a document
- Closed
- related to
-
SERVER-1599 support ability to pass hint to update
- Closed