Last active
November 17, 2016 21:48
-
-
Save codepainkiller/a34ecadcf187eb2ebdd13fe3c968ad7d to your computer and use it in GitHub Desktop.
M101P - Week 4
This file contains 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
db.posts.createIndex({date:-1}) | |
db.posts.createIndex({tags:1, date:-1}) | |
db.posts.createIndex({permalink:1}) |
This file contains 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
db.profile.find({ns:"school2.students"}).sort({millis:-1}).limit(1).pretty(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment