mongodb cant drop index after stopping indexing -
i had run index on mongodb did
db.devices.ensureindex({ "installed_packages" : 1 })
but when ran, noticed large , dont have time it, stopped indexing.
now, need run
db.devices.reindex()
but tries again index on installed_packages
i dont need anymore, , when try run
db.devices.dropindex({ "installed_packages" : 1 })
it says :
{ "errmsg" : "can't find index key:{ installed_packages: 1.0 }", "ok" : 0 }
and if run:
db.devices.dropindex("installed_packages_1")
it says:
{ "errmsg" : "index not found", "ok" : 0 }
what can drop it?
Comments
Post a Comment