Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8470A9B10 for ; Wed, 22 Feb 2012 04:15:13 +0000 (UTC) Received: (qmail 32360 invoked by uid 500); 22 Feb 2012 04:15:12 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 32281 invoked by uid 500); 22 Feb 2012 04:15:12 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 32243 invoked by uid 99); 22 Feb 2012 04:15:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Feb 2012 04:15:12 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Feb 2012 04:15:09 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id F30AF333DB4 for ; Wed, 22 Feb 2012 04:14:48 +0000 (UTC) Date: Wed, 22 Feb 2012 04:14:48 +0000 (UTC) From: "Sam Bisbee (Closed) (JIRA)" To: dev@couchdb.apache.org Message-ID: <322847880.2668.1329884088996.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Closed] (COUCHDB-160) replication performance improvements MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sam Bisbee closed COUCHDB-160. ------------------------------ Resolved for a while. Closing. > replication performance improvements > ------------------------------------ > > Key: COUCHDB-160 > URL: https://issues.apache.org/jira/browse/COUCHDB-160 > Project: CouchDB > Issue Type: Improvement > Components: Database Core > Affects Versions: 0.9 > Reporter: Adam Kocoloski > Priority: Minor > Attachments: couch_rep.erl.diff > > > I wrote some code to speed up CouchDB's replication process by parallelizing document requests and using _bulk_docs to write changes to the target. I tested the speedup as follows: > * 1000 document DB, 1022 update_seq, ~450 KB after compaction > * local and remote machines have ~45 ms latency > * timed requests using timer:tc(couch_rep, replicate, [<<"source">>, <<"target">>] > * all replications are "from scratch" > trunk: > local-local 115 > local-remote 145 > remote-remote 173 > remote-local 146 > db size after replication: 1.8 MB > patch: > local-local 1.83 > local-remote 38 > remote-remote 64 > remote-local 35 > db size after replication: 453 KB > I'll attach the patch as an update to this issue. It might be worth exposing the "batch size" (currently 100 docs) as a configurable parameter. Comments welcome. Best, > Adam -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira