mongodb
文章平均质量分 70
kingeasternsun
向linus致敬!
展开
-
MongoDB:The Definitive Guide 2nd笔记(二)
Grouping operators sum avg max min first last addToSet push Grouping behavior原创 2016-09-10 08:50:41 · 547 阅读 · 0 评论 -
MongoDB:The Definitive Guide 2nd笔记之特殊Indexes
TTL Indexes Full-Text Indexes Geospatial Indexing 空间检索的几种方式 2D IndexesTTL Indexes通过指定expireAfterSecs选项来创建。原创 2016-09-08 19:01:20 · 627 阅读 · 0 评论 -
MongoDB in Action Second Edition笔记之基于Index查询优化
查看查询过程的方法 查看所有的使用index的查询方案 强制使用某种index的方法 index cache原创 2016-09-29 10:45:41 · 452 阅读 · 0 评论 -
MongoDB in Action Second Edition笔记之Index
Compound Index例子 Core indexing concepts SINGLE-KEY INDEXES COMPOUND-KEY INDEXES INDEX EFFICIENCY B-trees Index types UNIQUE INDEXES SPARSE INDEXES MULTIKEY INDEXES HASHED INDEXES GEOSPATIAL INDEXES Ind原创 2016-09-28 16:57:25 · 670 阅读 · 0 评论 -
MongoDB:The Definitive Guide 2nd笔记之查看数据库大小
计算大小 Documents Collections Databases原创 2016-09-25 09:19:05 · 593 阅读 · 0 评论 -
MongoDB学习路线
参考书籍从零开始学习mongodb数据库之前只了解过mysql的基本知识,对于mongodb要从零开始学习,给自己制定的学习路线如下原创 2016-09-08 14:35:56 · 1195 阅读 · 0 评论 -
MongoDB:The Definitive Guide 2nd笔记之Seeing the Current Operations
查看当前操作 过滤查看db.currentOp({"ns" : "prod.users"}) 杀死操作,不是所有的操作都可以被杀死原创 2016-09-25 08:40:13 · 473 阅读 · 0 评论 -
MongoDB:The Definitive Guide 2nd笔记之system.profile
使用系统监控 打开监控 参看监控信息 查看耗时的操作 关闭监控 查看当前监控等级 使用系统监控打开监控> db.setProfilingLevel(2)等级2意味着监控所有,数据库接受的所有的读写操作都会记录在system.profile中。 开启监控对性能影响很大,因为所以的写操作都增加了额外的写入时间,所有的读操作都需要获取写锁(增加了一个写操作到system.profile)。原创 2016-09-25 08:56:54 · 953 阅读 · 0 评论 -
MongoDB:The Definitive Guide 2nd笔记(三)
Setting Up a Replica Set Majority How Elections Work Member Configuration Options Arbites Priority Hidden原创 2016-09-12 16:17:16 · 714 阅读 · 0 评论 -
MongoDB in Action Second Edition笔记之Text Index
创建Text index 创建Text index并指定权重 为域的成员创建Text index Text index 大小 手动指定Text index名称 全域Text index Text index查询 基本搜索 or搜索 限定在特定document中搜索 指定特定词必须包含在结果document中 精确匹配 排除包含词汇或语句的document 限定条件 Text search score原创 2016-09-30 16:21:17 · 855 阅读 · 0 评论