[ 
https://issues.apache.org/jira/browse/COUCHDB-913?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12919593#action_12919593
 ] 

Filipe Manana commented on COUCHDB-913:
---------------------------------------

An alternative scheme for the .ini configuration, would be along the lines:

[database_btree_cache]
somedb1 = [{size, 50}, {policy, lru}]
somedb2 = [{size, 200}, {policy, mru}]
_default = [{size, 100}, {policy, lru}]

[doc_cache]
somedb1 = [{size, 10}, {policy, lru}]
somedb2 = [{size, 100}, {policy, mru}]
_default = [{size, 0}]   ; disabled for all other databases

[view_group_btree_cache]
_design/foobar = [{size, 300}, {policy, lru}]
_design/focus = [{size, 50}, {policy, lru}]
_default = [{size, 100}, {policy, lru}]


Instead of the scheme in patch:

[couchdb]
database_btree_cache_size = 100    ; max number of cached BTree nodes per 
database (set to 0 to disable)
database_btree_cache_policy = lru  ; must be lru or mru
view_btree_cache_size = 100        ; max number of cached BTree nodes per view 
group (set to 0 to disable)
view_btree_cache_policy = lru      ; must be lru or mru
doc_cache_size = 0                 ; max number of cached documents per 
database (set to 0 to disable)


> Caching of BTree nodes and documents
> ------------------------------------
>
>                 Key: COUCHDB-913
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-913
>             Project: CouchDB
>          Issue Type: Improvement
>            Reporter: Filipe Manana
>            Assignee: Filipe Manana
>
> The following patch adds optional caching of BTree nodes (for both DBs and 
> view indexes) and documents:
> http://github.com/fdmanana/couchdb/commit/c6361d1e0d86942fc86350bea9ca1e8d7539c1b3
> Look at the new parameters introduced in default.ini.tpl.in for more details.
> This is based on the work initially done by Randall Leeds, found at:
> http://github.com/tilgovi/couchdb/commits/forevercache
> I'll not commit it before 1.1 nor without any feedback.
> cheers

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to