Created
November 21, 2015 23:59
-
-
Save enginkartal/8024857f94cab35f49a5 to your computer and use it in GitHub Desktop.
MongoDB Single Index
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
//aşağıdaki şekilde author küçükten büyüğe indexlenir. | |
db.content.createIndex("author":1) | |
//aşağıdaki şekilde ise author büyükten küçüğe indexlenir. | |
db.content.createIndex("author":-1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment