This version of the documentation is archived and no longer supported.

Manage In-Progress Index Creation

To see the status of the indexing processes, you can use the db.currentOp() method in the mongo shell. The value of the query field and the msg field will indicate if the operation is an index build. The msg field also indicates the percent of the build that is complete.

To terminate an ongoing index build, use the db.killOp() method in the mongo shell.

For more information see db.currentOp().

Changed in version 2.4: Before MongoDB 2.4, you could only terminate background index builds. After 2.4, you can terminate any index build, including foreground index builds.