a quick question regarding how to define a compound index
as per the definition I can create a compound index as below and it would create a compound index for student_id
and class_id
.
db.students.createIndex({"student_id":1,"class_id":1});
however what will happen if I give something like this
db.students.createIndex({"student_id,class_id":1})
the syntax is valid and it accepts the index, but I am not sure how the index would be created.
any thoughts ?