Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
> 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
You can’t perform that action at this time.