-
Type:
Bug
-
Resolution: Cannot Reproduce
-
Priority:
Major - P3
-
None
-
Affects Version/s: 1.8.0-rc0
-
Component/s: None
-
None
-
Linux
-
None
-
3
-
None
-
None
-
None
-
None
-
None
-
None
2 examples:
> db.nrwi.find(
{c:[288115985.5,0]})
error:
> db.nrwi.find({c:{$within:{$box:[[288115985.5,0],[288115986.5,1]]}}}).explain()
Sat Mar 12 00:04:32 uncaught exception: error:
The dataset's size is several GBs, and this is how the data looks like:
{ "_id" : ObjectId("4d7a97c0ed7cd785fe37804d"), "p" : "n", "id" : 20973869, "c" : [ 288174269, 1024.00003 ], "r" : 890 } { "_id" : ObjectId("4d7a97c0ed7cd785fe37804e"), "p" : "n", "id" : 20973895, "c" : [ 288174614, 1024.00003 ], "r" : 41 }This is the index:
db.nrwi.ensureIndex(
{ c: '2d', r: 1 },
{ min: 0, max: Math.pow(2, 30) })
To use this large 2d min/max work as explained in this post: http://groups.google.com/group/mongodb-user/browse_thread/thread/ef9047d0c94c0667