"Because the index you are using is multikey, the server cannot
constrain the index on both upper and lower bounds. Instead, only one
of the bounds is chosen. This is so we can return correct matches in
cases like the following:
save {a:[1,10]}
query {a:{$gt:2,$lt:9}}
The document should be returned because both query criteria ($gt and
$lt) match a value in the a array, but if we were to use both upper
and lower index bounds we would not find this document using the
index.
Right now if you want to do an index scan with both upper and lower
bounds, you need to use a non multi key index."
I hope that answers you question.
Perhaps you could hint to the query optimizer to use a non-multikey
index. More info here: http://www.mongodb.org/display/DOCS/Optimization#Optimization-Hint
-Tyler
https://jira.mongodb.org/browse/SERVER-4180
> --
> You received this message because you are subscribed to the Google Groups "mongodb-user" group.
> To post to this group, send email to mongod...@googlegroups.com.
> To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
>