CouchDB vs MongoDB (memory utilization)

孤街醉人 提交于 2020-01-02 01:07:08

问题


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

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 ?


回答1:


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

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.

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).



来源:https://stackoverflow.com/questions/10314272/couchdb-vs-mongodb-memory-utilization

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!