Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
None
-
None
-
None
-
ALL
Description
MongoDB Server Version: 3.2.21
Using a query witch consists of ** a index key, It also spend long time: 2730ms.
This is the query explain:

By the document, it says:
When performing a count, MongoDB can return the count using only the index if:
- the query can use an index,
- the query only contains conditions on the keys of the index, and
- the query predicates access a single contiguous range of index keys.
And I only use `attributes.ci_type` in the filter.