Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you check if MongoDB is still indexing?

Just inserted some data, and used a script to tell MongoDB to index the data, but is there a Mongo shell command where I can check wether the indexing is complete?

like image 603
chutsu Avatar asked Sep 08 '25 11:09

chutsu


1 Answers

Run db.currentOp() in the shell to see if your indexing operation is still in progress.

See more info in the documentation here.

like image 62
JohnnyHK Avatar answered Sep 11 '25 05:09

JohnnyHK