* Drop all indexes
> db.collection.dropIndexes();
{
"nIndexesWas" : 2,
"msg" : "non-_id indexes dropped for collection",
"ok" : 1
}
> db.collection.getIndexes()
[
{
"v" : 1,
"key" : {
"_id" : 1
},
"name" : "_id_",
"ns" : "db.collection"
}
]
'DB > MongoDB' 카테고리의 다른 글
mongodb - /etc/mongod.conf (0) | 2016.01.03 |
---|---|
mongodb - modify /etc/rc.d/init.d/mongod in fedora (0) | 2014.07.20 |
mongodb - mongodb.service for systemd (0) | 2014.07.20 |
mongodb - save, insert (0) | 2014.05.08 |
mongo - v2.6 error (0) | 2014.04.25 |