Foreach is a little difficult. Is there an official method to insert in batches?
See if this question and answer on Stackoverflow is the answer you are looking for:Bulk insert in MongoDB using mongoose
Foreach is a little difficult. Is there an official method to insert in batches?
See if this question and answer on Stackoverflow is the answer you are looking for:Bulk insert in MongoDB using mongoose