-
Type: Improvement
-
Resolution: Duplicate
-
Priority: Minor - P4
-
None
-
Affects Version/s: 1.6.4
-
Component/s: Index Maintenance, Querying
-
None
-
Environment:I`m not sure it not similar like http://jira.mongodb.org/browse/SERVER-1205
Query
I have index on
db.ogloszenia2.ensureIndex(
);
db.ogloszenia2.find({"id":397).limit(200).sort({"x":-1); //use index
db.ogloszenia2.find({"id":422).limit(200).sort({"x":-1); //use index
db.ogloszenia2.find({"id":{$in:[397,422]}).limit(200); //use index
db.ogloszenia2.find({"id":{$in:[397,422]}).limit(200).sort({"x":-1); //does not use index
- duplicates
-
SERVER-3310 Query optimizer should efficiently handle $in and sort with compound index.
- Closed