From user-return-6124-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Tue Aug 25 22:08:48 2009 Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 65001 invoked from network); 25 Aug 2009 22:08:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Aug 2009 22:08:47 -0000 Received: (qmail 98090 invoked by uid 500); 25 Aug 2009 22:09:11 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 98018 invoked by uid 500); 25 Aug 2009 22:09:11 -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 98008 invoked by uid 99); 25 Aug 2009 22:09:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Aug 2009 22:09:11 +0000 X-ASF-Spam-Status: No, hits=3.4 required=10.0 tests=FS_REPLICA,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mattaimonetti@gmail.com designates 209.85.211.174 as permitted sender) Received: from [209.85.211.174] (HELO mail-yw0-f174.google.com) (209.85.211.174) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Aug 2009 22:09:03 +0000 Received: by ywh4 with SMTP id 4so5111036ywh.17 for ; Tue, 25 Aug 2009 15:08:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=YWsZ3NPaUPH0JTcxopxmL7hxpoNKdj9SF24O2LPy6tk=; b=mPSVanjsnr8mtLvx5maaTwhOttXMhXNb1nQAG1x8KeP88EXV3uZFTeDZqUXp8XSD/j MM7QShYd+Ws991IRkOGAngSV3Ed3Pty9Hc+zXMGcewovqRF1bsldBviD/QC4fCT1Unf4 UxbdRhFgSjhUxjPKW3x8zyozUtyG+Es1jk8xc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=H/cuoiTKhGt7wHWN4ipXeo2/R4HueaZESsKbI6AFnKUZr8+Waj6JoMHafeQcnvRm46 3kRvMd7SOjIY2hRmeoYHMR+ubQOqVEnwIy+/iMVOurLqe+Hrqk3zdiqRp2eZaYTFHruw yIxH4X6ZIVn08pR5Zq6RN8x6/BqnJdO8eMh3s= MIME-Version: 1.0 Received: by 10.151.21.1 with SMTP id y1mr11634088ybi.3.1251238122585; Tue, 25 Aug 2009 15:08:42 -0700 (PDT) Date: Tue, 25 Aug 2009 15:08:42 -0700 Message-ID: <20fefa50908251508m2fc69a10q105cbe3347e590f0@mail.gmail.com> Subject: validation and filtered replication From: Matt Aimonetti To: CouchDB Content-Type: multipart/alternative; boundary=000e0cd4b306d3ffb40471fe9354 X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd4b306d3ffb40471fe9354 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi guys, I'm on CouchDB 0.9.1 and here is what I am trying to do: - node A, database A (docs have a node flag) - node B, database B (docs have a node flag) - node C, database C I need db A to replicate to db C and db B to replicate to C. However I want C to only replicate documents flagged for each node. The problem with using validation for replication is that it simply doesn't work. The view validation requires that you throw an exception if the document isn't valid, when you replicate 40,000 documents, couch just crashes on you. Worse, if you replicate two document and one fails the validation, none get replicated. 0.10 seems to have a filtering system, but it seems to be working exactly like validation. This is quite a big problem for the project I'm working on, can anyone suggest a better way to deal with this issue? Thanks, - Matt --000e0cd4b306d3ffb40471fe9354--