CouchDB
  1. CouchDB
  2. COUCHDB-1009

Make couch_stream buffer configurable

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Database Core
    • Labels:
      None
    • Environment:

      trunk

      Description

      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

      1. COUCHDB-1009-rebased.patch
        5 kB
        Jan Lehnardt
      2. COUCHDB-1009-2.patch
        5 kB
        Filipe Manana
      3. COUCHDB-1009.patch
        4 kB
        Filipe Manana

        Activity

        Filipe Manana created issue -
        Filipe Manana made changes -
        Field Original Value New Value
        Attachment COUCHDB-1009.patch [ 12467317 ]
        Filipe Manana made changes -
        Attachment COUCHDB-1009-2.patch [ 12471735 ]
        Jan Lehnardt made changes -
        Attachment COUCHDB-1009-rebased.patch [ 12501466 ]
        Filipe Manana made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Filipe Manana
            Reporter:
            Filipe Manana
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development