I have the next query:
db.getCollection('dealers').aggregate([{ "$geoNear" : { "near" : { "type" : "Point" , "coordinates" : [ 22.937506 , -30.559482]} , "spherical" : true , "distanceField" : "distance" , "maxDistance" : 21000000 , "num" : 6}}, { "$match" : { "$and" : [ { "brands" : { "$in" : [ "starbucks"]}} , { "country" : "za"} , { "language" : "en"}]}},{ $group: { _id: null, count: { $sum: 1 } } }, { "$limit" : 6}]);
I have two environments, the two environments have the same data and the same indexes, but when I run the above query, I get the first environment 6 registers and for the another 3 registers.
I checked and they have the same mongoDB version, Do you have any ideas about that?