
mongoDB
chenshangan
这个作者很懒,什么都没留下…
展开
-
Using Binary Data datetype for storing byte arrays in mongoDB
Store GUIDs as BinData, rather than as stringsBSON includes a binary data datatype for storing byte arrays. Using this will make the i原创 2011-09-19 10:54:36 · 2034 阅读 · 0 评论 -
mongodb从1.8升级到2.0可能出现的问题
1、使用SecureCRT进行远程操作,原来的shell命令行运行正常,但是升级到2.0后变得很诡异,当敲错命令想删除时,会把整个shell提示符都重复一遍。解决办法:Change Options -> Session Options ->Terminal -> Emulatio原创 2011-09-20 10:00:36 · 839 阅读 · 0 评论 -
mongodb在NUMA机器上运行注意点
You are running on a NUMA machine.We suggest launching mongod like this to avoid performance problems:numactl --interleave=all mongod [other options]NUMA相关知识:http://www.fmslib.com/fmsman/doc/num原创 2011-11-11 09:39:37 · 2506 阅读 · 0 评论 -
move chunk failed
当mongo instance 突然当机可能会导致mongo的automatic balancer出现问题,就是当机时正处于balance状态,重启机器后balance的lock state可能会一直为2,新的balance请求就为因为不能创建lock而被拒绝,解决方案如下connect to one mongosuse config;db.settings.update({_原创 2011-12-08 12:30:26 · 1706 阅读 · 0 评论