08 2017 档案
22.Atomicity and Transactions-官方文档摘录
摘要:原子性和事务 1 在单个文档修改多个嵌入文档,写操作都在文档级别上都是原子的 2 在单个写操作修改多个文档时,每个文档的修改都具有原子性,但是,作为一个整体的操作,并不是原子的。其他操作可能有交互。使用$isolated操作符隔离单个写操作,可以影响多个文档 3 使用$isolated操作符,影响多 阅读全文
posted @ 2017-08-18 11:28 懒睡的猫熊 阅读(357) 评论(0) 推荐(1)
21.SQL to MongoDB Mapping Chart-官方文档摘录
摘要:有关关系型数据库跟Mongod的语法对比 In addition to the charts that follow, you might want to consider the Frequently Asked Questions section for a selection of commo 阅读全文
posted @ 2017-08-14 16:39 懒睡的猫熊 阅读(493) 评论(0) 推荐(0)
20.Bulk Write Operations-官方文档摘录
摘要:1.有序操作列表将会串行执行,但如果在一个写操作过程出现异常错误,则不会处理剩余的任何写操作 2.无序操作列表将会并发执行,如果在一个写操作过程出现异常错误,则不影响,继续执行(并发无序) 3.对比无序操作,有序操作在分片中普遍比较慢 4.使用 bulkWrite() 有序操作 5.bulkWrit 阅读全文
posted @ 2017-08-07 13:35 懒睡的猫熊 阅读(1240) 评论(0) 推荐(0)
19.Delete Documents-官方文档摘录
摘要: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 懒睡的猫熊 阅读(536) 评论(0) 推荐(0)
17.Delete Methods-官方文档摘录
摘要:介绍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 懒睡的猫熊 阅读(290) 评论(0) 推荐(0)
16.Update Methods-官方文档摘录
摘要:这里没什么好说的,直接贴文了 MongoDB provides the following methods for updating documents in a collection: Updates at most a single document that match a specified 阅读全文
posted @ 2017-08-01 10:52 懒睡的猫熊 阅读(277) 评论(0) 推荐(0)
15.Update Documents-官方文档摘录
摘要:1.插入数据 2 更新语句$set 可以看到,如果没有的字段,则新增进去,同时修改了对应修改的内容 3 更新多条 4 替换 This page provides examples of how to update documents in using the following methods in 阅读全文
posted @ 2017-08-01 10:48 懒睡的猫熊 阅读(842) 评论(0) 推荐(0)