Mongodb: when to call ensureIndex?

后端 未结 7 947
囚心锁ツ
囚心锁ツ 2021-02-01 01:34

When should I call ensureIndex? Before inserting a single record, after inserting a single record, or before calling find()?

Regards,

Johnny

7条回答
提交回复
热议问题