上一页 1 ··· 3 4 5 6 7
摘要: mongodump和mongorestore高级企业应用(--oplog) 注意:这是replica set或者master/slave模式专用 --oplog use oplog for taking a point-in-time snapshot # 可以备份基于时间点的快照 # 在做备份过程 阅读全文
posted @ 2022-05-19 23:49 oldSimon 阅读(691) 评论(0) 推荐(0)
摘要: MongoDB sharding chunk 分裂与迁移详解 Primary shard 使用 MongoDB sharding 后,数据会以 chunk 为单位(默认64MB)根据 shardKey 分散到后端1或多个 shard 上。 每个 database 会有一个 primary shard 阅读全文
posted @ 2022-05-19 23:48 oldSimon 阅读(93) 评论(0) 推荐(0)
摘要: 索引类型 单键索引 组合索引 (几个字段一起) 多值索引 地理位置索引 全文索引 TTL索引 部分索引 哈希索引 组合索引 db. members. find({ gender:"F", age:{$gte:18}}). sort("join_date":1) 组合索引的最佳方式:ESR原则 精确( 阅读全文
posted @ 2022-05-19 23:41 oldSimon 阅读(162) 评论(0) 推荐(0)
摘要: 术语 Covered Query/FETCH——查询覆盖/抓取 如果所有需要的字段都在索引中,不需要额外的字段,就可以不再需要从数据页加载数据,这就是查询覆盖。 db.human.createlndex(ffirstName:1,lastName:1 gender:1,age:1}) IXSCAN/ 阅读全文
posted @ 2022-05-19 23:38 oldSimon 阅读(258) 评论(0) 推荐(0)
摘要: #### xShell7 配色 ```bash [Simon Colors] text=839496 cyan(bold)=00ffff text(bold)=ffffff magenta=c000c0 green=00c000 green(bold)=00ff00 background=002b3 阅读全文
posted @ 2022-05-17 22:00 oldSimon 阅读(350) 评论(0) 推荐(0)
摘要: 正确规则 [^A-Za-z_&-] (true|yes|ok|accepted|allowed|enabled|connected|successfully|成功|正确|successful|succeeded|success|exitoso|sucedido|erfolgreich) [^A-Za 阅读全文
posted @ 2022-05-17 21:55 oldSimon 阅读(474) 评论(0) 推荐(0)
摘要: 修改pip为国内源 # 可用源 阿里云 http://mirrors.aliyun.com/pypi/simple/ 中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/ 豆瓣(douban) http://pypi.douban.com/simple/ 清 阅读全文
posted @ 2022-04-17 17:55 oldSimon 阅读(198) 评论(0) 推荐(1)
上一页 1 ··· 3 4 5 6 7