Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
None
-
None
-
ALL
Description
> db.foo.drop()
true
> for (var i=0; i<100; i+) for (var j=0; j<100; j+) db.foo.insert({locs:{loc:[[i+Math.random(), j+Math.random()],[i+Math.random(), j+Math.random()],[i+Math.random(), j+Math.random()],[i+Math.random(), j+Math.random()],[i+Math.random(), j+Math.random()],]}})
> db.foo.ensureIndex(
)
> db.foo.find({'locs.loc': {$near: [50,50]}}, {_id:1}).limit(10)
Note that we do dedupe on normal indexes:
> db.bar.insert(
)
> db.bar.insert(
)
> db.bar.find({a:{$in:[1,2,3,4]}})