For details on specific methods, including syntax and examples, click on the specific method to go to its reference page.有关特定方法的详细信息,包括语法和示例,请单击特定方法以转到其参考页面。
Starting in version 3.2, MongoDB also provides the 从3.2版开始,MongoDB还提供了db.collection.bulkWrite()
method for performing bulk write operations.db.collection.bulkWrite()
方法来执行批量写入操作。
db.collection.initializeOrderedBulkOp() | Bulk() operations builder for an ordered list of operations.Bulk() 操作生成器。 |
db.collection.initializeUnorderedBulkOp() | Bulk() operations builder for an unordered list of operations.Bulk() 操作生成器。 |
Bulk() | |
Bulk.execute() | |
Bulk.find() | |
Bulk.find.arrayFilters() | update or updateOne operation.update 或updateOne 操作更新的数组元素。 |
Bulk.find.collation() | |
Bulk.find.hint() | |
Bulk.find.remove() | |
Bulk.find.removeOne() | |
Bulk.find.replaceOne() | |
Bulk.find.updateOne() | |
Bulk.find.update() | multi update operation to a list of operations.multi 更新操作添加到操作列表中。 |
Bulk.find.upsert() | upsert: true for an update operation.upsert:true 。 |
Bulk.getOperations() | Bulk() operations object.Bulk() 操作对象中执行的写操作数组。 |
Bulk.insert() | |
Bulk.tojson() | Bulk() operations object.Bulk() 操作对象中的操作数和批处理数。 |
Bulk.toString() | Bulk.tojson() results as a string.Bulk.tojson() 结果。 |