-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 1.6.1
-
Component/s: Index Maintenance, Querying
-
None
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.
- is depended on by
-
SERVER-2094 distinct cheat with indexes
- Closed
-
SERVER-29244 CLONE - distinct cheat with indexes
- Closed