How to specify index options with Meteor / Mongo Collections?


#1

Was reading this meteor-mongodb optimization article (here http://joshowens.me/how-to-optimize-your-mongo-database-for-meteor-js/) and wondering what is the best way to specify indexes for mongodb collections.

For example, can we specify indexes while inserting new documents, something like collection.insert({...}, {index: ...})

If not, what is the best practice to ensure best indexing / performance?