查看mongo构建索引的状态

我在mongo上构建索引,因为数据量特别大,我想知道构建索引的进度
用命令 db.currentOp();
后面怎么查看状态呢

阅读 9k
1 个回答

https://docs.mongodb.com/manu...

db.currentOp(
    {
      $or: [
        { op: "command", "query.createIndexes": { $exists: true } },
        { op: "none", ns: /\.system\.indexes\b/ }
      ]
    }
)
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题