Skip to content

Instantly share code, notes, and snippets.

@lizadaly
Created July 11, 2016 20:27
Show Gist options
  • Save lizadaly/b0fad78c19f30ce400de61d47c0cef95 to your computer and use it in GitHub Desktop.
Save lizadaly/b0fad78c19f30ce400de61d47c0cef95 to your computer and use it in GitHub Desktop.
label this scribeAPI
> db.subjects.getIndexes()
[
{
"v" : 1,
"key" : {
"_id" : 1
},
"name" : "_id_",
"ns" : "scribe_api_development.subjects"
},
{
"v" : 1,
"key" : {
"status" : 1,
"workflow_id" : 1,
"classifying_user_ids" : 1
},
"name" : "status_1_workflow_id_1_classifying_user_ids_1",
"background" : true,
"ns" : "scribe_api_development.subjects"
},
{
"v" : 1,
"key" : {
"type" : 1,
"subject_set_id" : 1
},
"name" : "type_1_subject_set_id_1",
"background" : true,
"ns" : "scribe_api_development.subjects"
},
{
"v" : 1,
"key" : {
"parent_subject_id" : 1,
"status" : 1,
"region" : 1
},
"name" : "parent_subject_id_1_status_1_region_1",
"ns" : "scribe_api_development.subjects"
}
]
> db.classifications.getIndexes()
[
{
"v" : 1,
"key" : {
"_id" : 1
},
"name" : "_id_",
"ns" : "scribe_api_development.classifications"
},
{
"v" : 1,
"key" : {
"child_subject_id" : 1
},
"name" : "child_subject_id_1",
"background" : true,
"ns" : "scribe_api_development.classifications"
},
{
"v" : 1,
"key" : {
"created_at" : 1
},
"name" : "created_at_1",
"background" : true,
"ns" : "scribe_api_development.classifications"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment