背景:堡垒机上Robomongo默认每页只显示50条
db.operationLog.aggregate([
{'$group':{'_id':{'menuName':'$menuName','menuId':'$menuId'},'count':{'$sum':1}}},
{$sort: {"count":-1}}
])
默认:
解决方案:增加DBQuery.shellBatchSize = 300;
#增加如下设置
DBQuery.shellBatchSize = 300;
db.operationLog.aggregate([
{'$group':{'_id':{'menuName':'$menuName','menuId':'$menuId'},'count':{'$sum':1}}},
{$sort: {"count":-1}}
])
解决后: