在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/Java  數(shù)據(jù)庫/ 查看mongo構(gòu)建索引的狀態(tài)

查看mongo構(gòu)建索引的狀態(tài)

我在mongo上構(gòu)建索引,因為數(shù)據(jù)量特別大,我想知道構(gòu)建索引的進度
用命令 db.currentOp();
后面怎么查看狀態(tài)呢

回答
編輯回答
涼汐

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

db.currentOp(
    {
      $or: [
        { op: "command", "query.createIndexes": { $exists: true } },
        { op: "none", ns: /\.system\.indexes\b/ }
      ]
    }
)
2017年10月5日 11:45