2017年8月7日
摘要: 1.有序操作列表将会串行执行,但如果在一个写操作过程出现异常错误,则不会处理剩余的任何写操作 2.无序操作列表将会并发执行,如果在一个写操作过程出现异常错误,则不影响,继续执行(并发无序) 3.对比无序操作,有序操作在分片中普遍比较慢 4.使用 bulkWrite() 有序操作 5.bulkWrit 阅读全文
posted @ 2017-08-07 13:35 懒睡的猫熊 阅读(1207) 评论(0) 推荐(0) 编辑
摘要: 1 插入例子 2 删除所有 3 删除匹配的行 4 删除最多一行记录 5 注意 This page provides examples of delete operations using the following methods in the mongo shell: db.collection. 阅读全文
posted @ 2017-08-07 11:05 懒睡的猫熊 阅读(516) 评论(0) 推荐(0) 编辑
摘要: 介绍delete的方法 MongoDB provides the following methods to delete documents of a collection: Delete at most a single document that match a specified filter 阅读全文
posted @ 2017-08-07 10:52 懒睡的猫熊 阅读(279) 评论(0) 推荐(0) 编辑