Created
November 21, 2018 20:19
-
-
Save stephencweiss/04c3a9e1e0902b6c049e5385c684cb17 to your computer and use it in GitHub Desktop.
Three common index related commands in the mongo shell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//mongo sh | |
db.collection.createIndex() | |
db.collection.getIndexes() | |
db.collection.dropIndexes(["<index_name>"]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment