bulk insertとinserting multiple documentsの間に違いはありますか?MongoDB:一括挿入(Bulk.insert)vs複数挿入(挿入([...]))
var bulk = db.items.initializeUnorderedBulkOp();
bulk.insert({ item: "abc123", defaultQty: 100, status: "A", points: 100 });
bulk.insert({ item: "ijk123", defaultQty: 200, status: "A", points: 200 });
bulk.insert({ item: "mop123", defaultQty: 0, status: "P", points: 0 });
bulk.execute();
VS
db.collection.insert(
<document or array of documents>
)
1つのザッツ速くはありますか?