首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

mongodb重启唤起数据丢失 续

2012-09-27 
mongodb重启引起数据丢失 续今天看到官方Blog的一篇文章,http://blog.mongodb.org/post/248614779/fast-up

mongodb重启引起数据丢失 续
今天看到官方Blog的一篇文章,http://blog.mongodb.org/post/248614779/fast-updates-with-mongodb-update-in-place

上面写道:MongoDB disk writes are lazy.  If we receive 1,000 increments in one second for the object, it will only be written once.  Physical writes occur a couple of seconds after the operation.

以此可知,当1秒钟后写入第二次时,mongodb必定会物理写入磁盘,改方法已经测试通过。

linux下测试结果:一定时间之后会自动写入数据到磁盘。

热点排行