mongo会话

db.aggregate([
{ $currentOp: { allUsers: true } },
{ $match: { ns: { $exists: true } } },
{ $group: { _id: { ns: "$ns", client: "$client", op: "$op" }, count: { $sum: 1 } } },
{ $sort: { count: -1 } }
])

posted on 2025-04-23 09:52  吃草的青蛙  阅读(13)  评论(0)    收藏  举报

导航