CouchDB与MongoDB(内存利用率) [英] CouchDB vs MongoDB (memory utilization)

查看:190
本文介绍了CouchDB与MongoDB(内存利用率)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在低内存环境(小于1GB)中哪个具有更好的性能?

Which has the better performance in low memory environments (sub 1GB) ?

我过去使用过MongoDB,在512mb的盒子上使用250mb的数据库时,似乎在内存方面遇到了麻烦,CouchDB的情况也是如此吗?

I've used MongoDB in the past which seems to struggle memory-wise with a database of 250mb on a 512mb box, would the same be true of CouchDB ?

推荐答案

CouchDB使用很少的内存.它已经或多或少未经修改地嵌入到iOS和Android中-Erlang以及所有.

CouchDB uses very little memory. It has been embedded in iOS and Android more-or-less unmodified—Erlang and all.

CouchDB通过文件I/O完全工作,将缓存委派给操作系统(文件系统缓存). CouchDB服务器上的一种典型情况是看到非常少量的已用"内存,但是却看到了非常大的数量用于缓存".在专用的CouchDB服务器上,该数字基本上是CouchDB的数据.但是,管理和重新分配这些资源取决于它所属的操作系统.

CouchDB works completely through file i/o, delegating caching to the operating system (filesystem cache). A typical situation on a CouchDB server is to see a very small amount of "used" memory, but a very large amount used for "cache." On a dedicated CouchDB server, that number is basically CouchDB's data; however, managing and reallocating those resources is up to the OS where it belongs.

换句话说,CouchDB在低内存环境中表现出色.实际上,嵌入式环境(例如移动设备)仍然非常快,因为低内存在某种程度上与低延迟存储设备(固态磁盘)保持了平衡.

In other words, CouchDB performs excellently in low-memory environments. In fact, embedded environments (e.g. mobile) are still very fast because the low-memory is somewhat balanced by the low-latency storage device (solid-state disk).

这篇关于CouchDB与MongoDB(内存利用率)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆