BSONObjBuilder Ruby: Use 1.9.x or OrderedHash in 1.8.x Python: Use OrderedDict (introduced in 2.7) and SON (in the BSON package) Javascript: Did I mention arrays? Friday, January 6, 2012
But it can be a compound index: > db[‘tiles’].create_index([ [“position”, Mongo::GEO2D], [“letter”, Mongo::ASCENDING] ]) => “position_2d_letter_1” Queries are prefix-matched on indexes, so put Geo2D first (or use hinting) Friday, January 6, 2012
Great for regional analytics: ‘What events did user x trigger within this region’ ‘Which users visited this region in the last 24 hours’ Friday, January 6, 2012
a sphere using a standard sinusoidal projection) If you’re using non-square region units, expect to perform secondary processing on the results Friday, January 6, 2012
all to be in memory Large numbers of tiny documents Large regions of the world where activity => 0 as density => 1 Single box scaling limit determined by # of active sections of the world at a time Friday, January 6, 2012
recommended due to query performance (SERVER-1982). Vote it up if you care (and you should). Can’t use $near in queries, only $geoNear and therefore runCommand(). (SERVER-1981) Friday, January 6, 2012