Skip to content

Instantly share code, notes, and snippets.

@jeffyuhaoliu
Created September 8, 2013 06:56
Show Gist options
  • Save jeffyuhaoliu/6482525 to your computer and use it in GitHub Desktop.
Save jeffyuhaoliu/6482525 to your computer and use it in GitHub Desktop.
Node.js MongoDB HW#4.4 - This query, queries the profile data, looking for all queries to the students collection in the database school2, sorted in order of decreasing latency.
db.profile.find({ns:/school2.students/}, {millis: 1}).sort({millis: -1}).pretty()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment