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

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -