在我的mongodb上,查找查询需要0.079767814s才能返回匹配的文档。它返回总"nReturned": NumberInt(5709),
并完美地执行索引计划。
见下面的日志
MONGODB | localhost:27017 | everything_civic_production.find | STARTED | {"find"=>"users", "filter"=>{"is_deleted"=>false, "user_role"=>{"$in"=>[6]}, "app_master_id"=>BSON::ObjectId('567b757e5659a66e5705b427')}, "sort"=>{"_id"=>-1}}
MONGODB | localhost:27017 | everything_civic_production.find | SUCCEEDED | 0.079767814s
MONGODB | localhost:27017 | everything_civic_production.getMore | STARTED | {"getMore"=>378139582621, "batchSize"=>0, "collection"=>"users"}
MONGODB | localhost:27017 | everything_civic_production.getMore | SUCCEEDED | 4.186633778s
MONGODB | localhost:27017 being removed from the cluster.
MONGODB | Server localhost:27017 elected as primary in rs0.
MONGODB | localhost:27017 | everything_civic_production.getMore | STARTED | {"getMore"=>378139582621, "batchSize"=>0, "collection"=>"users"}
MONGODB | localhost:27017 | everything_civic_production.getMore | SUCCEEDED | 2.669569172s
请参阅上面日志中的getMore
行。需要4 seconds
任何人都可以帮助我理解这种奇怪的行为吗?