背景:堡垒机上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}}
])
解决后:

本文介绍了解决Robomongo在堡垒机上显示数据条数限制的问题,通过调整DBQuery.shellBatchSize参数,将默认每页显示50条增加到300条,显著提高了数据展示效率。
1715

被折叠的 条评论
为什么被折叠?



