官术网_书友最值得收藏!

RAM matters

Couchbase is a "RAM first, disk second" database. Both the reads and writes are optimized to use RAM. On the write side, documents are written to the memory first and then flushed asynchronously to the disk. While volatile memory might not seem optimal for a database, remember that Couchbase will replicate your data on up to three nodes. Additionally, there are API methods that require a disk write before a write to RAM is considered a success.

On the read side, Couchbase maintains metadata about documents in the RAM to provide faster retrieval. Couchbase will also attempt to store as many documents as it is able to in the memory for faster access. Less available RAM means that Couchbase will need to fetch more documents from the disk. Couchbase uses a most recently used (MRU) algorithm to determine which documents are cached and which are evicted. The current beta version, Couchbase Server 3.0, will allow caching and eviction strategies to be tuned.

主站蜘蛛池模板: 利津县| 潜江市| 平舆县| 哈尔滨市| 红安县| 鲜城| 石楼县| 清徐县| 阿拉善盟| 上杭县| 封开县| 筠连县| 江达县| 射洪县| 云南省| 揭阳市| 宿松县| 大名县| 洛宁县| 临夏县| 荥经县| 大同县| 通山县| 乌鲁木齐县| 敖汉旗| 师宗县| 左权县| 长泰县| 巍山| 沅陵县| 武川县| 明溪县| 永德县| 富蕴县| 沙河市| 珲春市| 定日县| 西宁市| 平山县| 泗水县| 灌阳县|