Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@mdcallag
Created June 24, 2015 20:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mdcallag/5aa546a81f8170ad7bdb to your computer and use it in GitHub Desktop.
Save mdcallag/5aa546a81f8170ad7bdb to your computer and use it in GitHub Desktop.
> db.count.getIndexes()
[
{
"v" : 1,
"key" : {
"_id" : 1
},
"name" : "_id_",
"ns" : "graph-linkbench.count"
},
{
"v" : 1,
"unique" : true,
"key" : {
"id" : 1,
"link_type" : 1
},
"name" : "id_1_link_type_1",
"ns" : "graph-linkbench.count"
}
> db.link.getIndexes()
[
{
"v" : 1,
"key" : {
"_id" : 1
},
"name" : "_id_",
"ns" : "graph-linkbench.link"
},
{
"v" : 1,
"unique" : true,
"key" : {
"link_type" : 1,
"id1" : 1,
"id2" : 1
},
"name" : "link_type_1_id1_1_id2_1",
"ns" : "graph-linkbench.link"
},
{
"v" : 1,
"key" : {
"id1" : 1,
"link_type" : 1,
"visibility" : 1,
"time" : 1,
"id2" : 1,
"version" : 1,
"data" : 1
},
"name" : "id1_1_link_type_1_visibility_1_time_1_id2_1_version_1_data_1",
"ns" : "graph-linkbench.link"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment