Skip to content

Instantly share code, notes, and snippets.

@bingeboy
Created February 9, 2014 23:52
Show Gist options
  • Save bingeboy/8907974 to your computer and use it in GitHub Desktop.
Save bingeboy/8907974 to your computer and use it in GitHub Desktop.
MongoDB Week 4
> db.posts.getIndexes()
[
{
"v" : 1,
"key" : {
"_id" : 1
},
"ns" : "blog.posts",
"name" : "_id_"
},
{
"v" : 1,
"key" : {
"date" : 1
},
"ns" : "blog.posts",
"name" : "date_1"
},
{
"v" : 1,
"key" : {
"date" : -1
},
"ns" : "blog.posts",
"name" : "date_-1"
},
{
"v" : 1,
"key" : {
"permalink" : 1
},
"ns" : "blog.posts",
"name" : "permalink_1"
},
{
"v" : 1,
"key" : {
"tags" : 1
},
"ns" : "blog.posts",
"name" : "tags_1"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment