Skip to content

Instantly share code, notes, and snippets.

@codepainkiller
Last active November 17, 2016 21:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codepainkiller/a34ecadcf187eb2ebdd13fe3c968ad7d to your computer and use it in GitHub Desktop.
Save codepainkiller/a34ecadcf187eb2ebdd13fe3c968ad7d to your computer and use it in GitHub Desktop.
M101P - Week 4
db.posts.createIndex({date:-1})
db.posts.createIndex({tags:1, date:-1})
db.posts.createIndex({permalink:1})
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