Question regarding EnsureIndex (mgo)

Hello!

I would like to know if any of you has experience with mgo, I have a question regarding EnsureIndex.

When I have just one collection, the key would be something like Key: []string{"username"} but what if I have multiple collections? should I do something like Key: []string{"isbn", "username"}?

I hope I made me understand, thank you so much!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.