background - mongodb status of index creation job -
i'm using mongodb , have collection 75 million records. have added compound index on 2 "fields" using following command:
db.my_collection.ensureindex({"data.items.text":1, "created_at":1},{background:true}). two days later i'm trying see status of index creation. running db.currentop() returns {}, when try create index error message:
cannot add index background operation in progress. is there way check status/progress of index creation job?
one thing add - using mongodb version 2.0.6. thanks!
you use currentop true argument returns more verbose output, including idle connections , system operations.
db.currentop(true) ... , use db.killop() kill desired operation.
Comments
Post a Comment