Mongo and find always limited to 100 with geo data
问题 While trying to experiment with mongo performance I found strange behaviour of my mongo db. First of all i filled it with the following query: for (i=0; i < 10000000; i++){db.location.insert( {_id: Math.floor((Math.random()*10000000000)+1), position: [Math.round(Math.random()*10000)/10000, Math.round(Math.random()*10000)/10000]} )} next: db.location.ensureIndex( {position: "2d"} ) Then i execute query: db.location.find( {position: { $near: [1,1], $maxDistance: 1/111.12 } } ) Whatever i try to