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

Robert Newson commented on COUCHDB-1009:
----------------------------------------

for attachment heavy scenarios, perhaps resolving COUCHDB-769 would obviate any 
need to get this size 'just right'?

a 28% improvement for a 16x increase in chunk size strikes me as weak, btw. 
When I tried this experiment before, I emitted the actual sizes of the chunks 
that were getting written (64kib simply being the maximum size). Have you 
verified that you actually write 64kib chunks rather than merely accept them?

In any case, changing the default should be a separate commit to the commit 
that makes this setting configurable.


> Make couch_stream buffer configurable
> -------------------------------------
>
>                 Key: COUCHDB-1009
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1009
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: Database Core
>         Environment: trunk
>            Reporter: Filipe Manana
>            Assignee: Filipe Manana
>            Priority: Trivial
>         Attachments: COUCHDB-1009.patch
>
>
> The couch_stream buffer is hardcoded to 4Kb.
> This value should be configurable. Larger values can improve write and 
> specially read performance (if we write larger chunks to disk, we have higher 
> chances of reading more contiguous disk blocks afterwards). 
> I also think it's a good idea to change the default value from 4Kb to 
> something higher (64Kb for e.g.).
> Patch attached

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