Details
-
Improvement
-
Status: Closed
-
Major - P3
-
Resolution: Fixed
-
1.6.1
-
None
Description
db.ensureIndex(
{x:1})
db.distinct('x')
Distinct apparently does a full table scan, even though it could use the index to speed things up a bit. Please see the discussion here:
http://groups.google.com/group/mongodb-user/browse_thread/thread/912fd4b9e303fb04/
My current application of MongoDB relies on fast distincts, and I think this would help quite a bit.
Attachments
Issue Links
- is depended on by
-
SERVER-2094 distinct cheat with indexes
-
- Closed
-
-
SERVER-29244 CLONE - distinct cheat with indexes
-
- Closed
-