Priority: Major - P3
Affects Version/s: 2.4.9, 2.6.0-rc0
Fix Version/s: None
Component/s: Index Maintenance
Restore the database from the attached BSON data (I called it BookStore FWIW).
Then this query without indexes takes about 300 ms and uses basic cusor as you would expect:
Running explain we see it is using a cursor and it takes 891 ms.
Now, remove that index:
And you will see it runs in 300ms!
It seems like mongo should either:
- Not use the index
- Acheive at least as good of perf
To make matters much worse, I was actually running just a count operation via the C# driver and go even worse perf. Seems like there should be almost no perf cost for a count operation on an index set.