[
https://issues.apache.org/jira/browse/COUCHDB-1009?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12976818#action_12976818
]
Filipe Manana commented on COUCHDB-1009:
----------------------------------------
COUCHDB-769 is a totally different matter I think, not to mention that it's a
very big change, has many implications that the patch doesn't address and as
far as I can tell, there aren't short or medium term plans to add it to CouchDB.
And yes it writes 64Kb (or more) chunks to the file. couch_stream buffers the
received data until it reaches or exceeds the buffer size.
I have no objections about leaving it as 4Kb.
> 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.