MONGODB 读书摘要
If you are starting a brand-new set, you can send the configuration to any member inthe set. If you are starting with data on one of the members, you must send the configurationto the member with data. You cannot initiate a set with data on more than onemember.如果RS是全新的,无任何数据的,那么...
MONGODB 读书笔记
MONGODB不支持truncate操作,如果想快速删除一个集合的数据,只能drop后重建集合、索引。如果想改变oplog的大小现在还比较复杂,官方完全能做一个命令接口,一个操作就可以实现。 MONGODB提供了数据预热方法,还不错。搜索MONGODB TOUCH了解这一内容。(db.runCommand({"touch" :...
个人paper下载页
深入讲解了adaptive cursor sharing 的知识adaptive cursor sharing .pdfITPUB精华博文,让你不再对buffer busy waits感到疑惑 buffer busy waits.pdfITPUB精华博文,讲述了log file sync的方方面面log file sync.pdfSPM baseline深入研究SPM baseline.pdfSQL PROFILE深入研究 SQL profile.pdfdirect ...
mongodb 重复建立索引不报错
wxh:PRIMARY> db.coll.stats(){ "ns" : "test.coll", "count" : 4, "size" : 144, "avgObjSize" : 36, "storageSize" : 4096, "numExtents" ...
Sparse Indexes vs unique index
wxh:PRIMARY> db.coll.ensureIndex({id2:1} ,{unique:true}){ "err" : "E11000 duplicate key error index: test.coll.$id2_1 dup key: { : null }", "code" : 11000, "n" : 0, "lastOp" : Times...
mongodb replicat internal(一)
这几天在看MONGODB权威指南,第十二章提到了,复制集创建索引的时候,可以把备份节点启动到standalone方式,然后先在备份节点创建索引,然后再在主节点创建索引,这中间的好处我就不写了,我在考虑,备份节点以stand alone方式启动后,创建索引后也会产生oplog,等下一次备份节点正常启动加入集群后,根据自己的oplog去查看...
numa不是我想象
mongo启动没有增加关闭numa选项进行数据库的预热,由于集合dnscoll比较大,加索引100多G,因此预热需要一段时间db.runCommand({"touch" : "dnscoll", "data" : true, "index" : true})这个过程中观察CPU,发现 id为20的CPU idle为0,这个属于正常情况,说明预热进程消耗的CPU是在 ID为20的CPU上02:57:15 PM CPU &...
mongodb local数据库的空间初始化好大啊!
新建立了一个replicat set,登录到primary里,show dbs一看吓一跳local数据库竟然占用了80多G的空间[root@wxlab31 bin]# ./mongo --host 10.1.1.31 --port 27017MongoDB shell version: 2.4.6connecting to: 10.1.1.31:27017/testServer has startup warnings: Mon Jan 20 15:12:35.071 [initandlisten] Mo...
MONGODB 最近测试结果的简单记录
测试目的:随着集合数据量的增大,查询效率会不会降低测试了300W,1000W,5000W,一亿,三亿,五亿数据量测试结果:MONGO的表现非常稳定,每秒的查询次数保持在84000到86000之间,随着数据量的增大,查询效率没有明显的下降表结果:> db.dnscoll.find(){ "_id" : "Hcpp07cOXO1", "id2" : "000000000000000002", "id3" : ...