Bulk Operation Methods批量操作方法
Note
For details on a specific method, including syntax and examples, click on the link to the method's reference page.有关特定方法的详细信息,包括语法和示例,请单击该方法参考页的链接。
Tip
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.delete() | |
Bulk.find.deleteOne() | |
Bulk.find.hint() | |
Bulk.find.remove() | Bulk.find.delete() .Bulk.find.delete() 的别名。 |
Bulk.find.removeOne() | Bulk.find.deleteOne() .Bulk.find.deleteOne() 的别名。 |
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() 结果。 |