Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D41EE821F for ; Wed, 10 Aug 2011 14:57:22 +0000 (UTC) Received: (qmail 19010 invoked by uid 500); 10 Aug 2011 14:57:21 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 18967 invoked by uid 500); 10 Aug 2011 14:57:20 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 18959 invoked by uid 99); 10 Aug 2011 14:57:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Aug 2011 14:57:20 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sean.copenhaver@gmail.com designates 209.85.220.180 as permitted sender) Received: from [209.85.220.180] (HELO mail-vx0-f180.google.com) (209.85.220.180) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Aug 2011 14:57:13 +0000 Received: by vxh15 with SMTP id 15so1382739vxh.11 for ; Wed, 10 Aug 2011 07:56:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=EpZc4KI20ARBIVu7Ws2Q3c2z2VpYzeo6aqv9clHENck=; b=qjcCBvd2OM41Qboa6I7cu/wbG3Yasm+zCxbHxrXRarOt+9UpDHwltmiKYGxl3AqsNh XWUwI+rEOccyh9u3bTQlzfTwV/GensSRWaN5raMqtTRFM02vR6mT5lLZbGzFDa8B5veH 7YsKaQtWtbnoylOuYAUVUeCMg2hihDnBLuBCY= MIME-Version: 1.0 Received: by 10.52.92.7 with SMTP id ci7mr5441169vdb.390.1312988212948; Wed, 10 Aug 2011 07:56:52 -0700 (PDT) Received: by 10.52.113.72 with HTTP; Wed, 10 Aug 2011 07:56:52 -0700 (PDT) In-Reply-To: References: <4DDA388C.4010204@gmail.com> Date: Wed, 10 Aug 2011 10:56:52 -0400 Message-ID: Subject: Re: Merging many DataBases into one From: Sean Copenhaver To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=bcaec501628506efd104aa27e42d X-Virus-Checked: Checked by ClamAV on apache.org --bcaec501628506efd104aa27e42d Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Sounds like the same ids are in use in both shards. If conflicts occur during replication a "winner" is picked deterministically by CouchDB. Something like whoever has the higher revision hash. On Wed, Aug 10, 2011 at 10:18 AM, Iako wrote: > Hi, > > I tried to merge two shards and each time one overrides the other. > So, though the target database shows that is as large as the two > source databases, it shows only the number of documents of one of > the source databases (the order of replicating does not change > which one -- one seems to be dominant). > > Any suggestions would be very welcome. > > Jim > > > > --=20 =93The limits of language are the limits of one's world. =93 -Ludwig von Wittgenstein --bcaec501628506efd104aa27e42d--