摘要: 今天,2016年12月12日, Group Replication GA啦!GA的版本是MySQL-5.7.17. 下载连接如下: http://dev.mysql.com/downloads/mysql/ ACMUG年会上很多人问:有没有对比过Group Replication和异步复制的性能。M 阅读全文
posted @ 2016-12-14 09:09 懒睡的猫熊 阅读(1095) 评论(0) 推荐(1) 编辑
  2020年6月28日
摘要: MySQL8系列新增的密码插件策略:caching_sha2_password 阅读全文
posted @ 2020-06-28 10:11 懒睡的猫熊 阅读(12296) 评论(0) 推荐(0) 编辑
  2017年8月18日
摘要: 原子性和事务 1 在单个文档修改多个嵌入文档,写操作都在文档级别上都是原子的 2 在单个写操作修改多个文档时,每个文档的修改都具有原子性,但是,作为一个整体的操作,并不是原子的。其他操作可能有交互。使用$isolated操作符隔离单个写操作,可以影响多个文档 3 使用$isolated操作符,影响多 阅读全文
posted @ 2017-08-18 11:28 懒睡的猫熊 阅读(331) 评论(0) 推荐(1) 编辑
  2017年8月14日
摘要: 有关关系型数据库跟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 懒睡的猫熊 阅读(476) 评论(0) 推荐(0) 编辑
  2017年8月7日
摘要: 1.有序操作列表将会串行执行,但如果在一个写操作过程出现异常错误,则不会处理剩余的任何写操作 2.无序操作列表将会并发执行,如果在一个写操作过程出现异常错误,则不影响,继续执行(并发无序) 3.对比无序操作,有序操作在分片中普遍比较慢 4.使用 bulkWrite() 有序操作 5.bulkWrit 阅读全文
posted @ 2017-08-07 13:35 懒睡的猫熊 阅读(1205) 评论(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) 编辑
  2017年8月1日
摘要: 这里没什么好说的,直接贴文了 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 懒睡的猫熊 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 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 懒睡的猫熊 阅读(827) 评论(0) 推荐(0) 编辑
  2017年7月31日
摘要: 1 迭代游标 2 迭代指数 可以简化成 3 关闭游标,不活跃的游标需要等到10分钟才自动关闭,可以通过指定时间来进行关闭 4 find(), aggregate(), listIndexes, and listCollections 最大是16MB The db.collection.find()  阅读全文
posted @ 2017-07-31 11:02 懒睡的猫熊 阅读(395) 评论(0) 推荐(0) 编辑
摘要: 1 插入数据 2 查询null值 如果要精确查找到对应的null的字段,应该 3 查询是否存在这个元素 Different query operators in MongoDB treat null values differently. This page provides examples of 阅读全文
posted @ 2017-07-31 10:26 懒睡的猫熊 阅读(297) 评论(0) 推荐(0) 编辑