Bulk insert
haojia321 opened this issue · comments
Hao Jia commented
Will simple schema still work if I use bulk insert? https://docs.mongodb.com/manual/reference/method/Bulk.insert/#Bulk.insert
We need to write below code to achieve Mongodb's bulk insert
var bulk = UserNotifications.rawCollection().initializeUnorderedBulkOp();
...
bulk.execute();
Eric Dobbertin commented
No, you'll need to validate all docs before inserting