Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 96218 invoked from network); 8 Feb 2010 23:08:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Feb 2010 23:08:37 -0000 Received: (qmail 71353 invoked by uid 500); 8 Feb 2010 23:08:35 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 71283 invoked by uid 500); 8 Feb 2010 23:08:35 -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 71273 invoked by uid 99); 8 Feb 2010 23:08:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Feb 2010 23:08:35 +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 (nike.apache.org: domain of roddsnook@gmail.com designates 209.85.223.198 as permitted sender) Received: from [209.85.223.198] (HELO mail-iw0-f198.google.com) (209.85.223.198) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Feb 2010 23:08:27 +0000 Received: by iwn36 with SMTP id 36so1551526iwn.3 for ; Mon, 08 Feb 2010 15:08:06 -0800 (PST) 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=HSajFwwU0wwFFuKvP9iUF2CAetitFLJti43VdFm7cLI=; b=lLrBg8zR+FXwu1viBOrbryYqRY8hDftXITrKl8wY0svZprwT9bPinW8hb6wHMqg46x 7aKUb4CFWZ6MPi6RJqlN471cVim1Km2YiOvYZ2XIvSBUWjOdQk8YYAfC1CyD+0fYhq70 RcvKM9w0wavc+LohscygdqmHjHyUbvbNZYUC0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=qXSaVsWi6aftUG9DYWI7cTt7zdW7GeKjFmr9dWx40k4Nopsnb+Ov9HQMXD9z8eARV8 Q9pdgrXA/oD/9/tnqgBo5N7kqoKFZNmPm23DkdwzHkxV+mHpszyQrFOttguCPsTxiFb0 cxOE2i0IZ5vGzYrrsdV8PISOQdqn2vLb+HCCM= MIME-Version: 1.0 Received: by 10.231.162.9 with SMTP id t9mr478294ibx.5.1265670486319; Mon, 08 Feb 2010 15:08:06 -0800 (PST) Date: Tue, 9 Feb 2010 10:08:06 +1100 Message-ID: <90f73f241002081508l4892f725va93d4b360f487da8@mail.gmail.com> Subject: Any experience with partial replication via _changes? From: Rodd Snook To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=0050450142cabd652c047f1edf2e X-Virus-Checked: Checked by ClamAV on apache.org --0050450142cabd652c047f1edf2e Content-Type: text/plain; charset=ISO-8859-1 Hi, I'm a new CouchDB user in the middle of designing a new publishing sub-system for a web app. One model that I'm considering is to use a kind of partial replication, by listening to a filter on _changes, pulling out documents with a "publish" flag on them and pushing them to a Couch instance backing up the live site. Is there anyone with experience doing something similar, who can tell me if this is an effective strategy, or a recipe for headache and disaster? I'd link to know ahead of time if there's some pitfall that's going to prevent me from doing this with a manageably small piece of bash/perl/php. Rodd --0050450142cabd652c047f1edf2e--