Dropping a collection without losing the indexes

http://pixabay.com/en/leaf-nature-green-water-drop-8701/

Long story short, you can’t drop a MongoDB collection without losing the indexes. However, in this post I offer a shell helper that will save the indexes and build them again, so you won’t have to worry about it.

Continue reading “Dropping a collection without losing the indexes”