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 9F9299333 for ; Thu, 4 Oct 2012 07:16:07 +0000 (UTC) Received: (qmail 96592 invoked by uid 500); 4 Oct 2012 07:16:06 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 96542 invoked by uid 500); 4 Oct 2012 07:16:05 -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 96514 invoked by uid 99); 4 Oct 2012 07:16:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Oct 2012 07:16:04 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of north.n@gmail.com designates 209.85.212.182 as permitted sender) Received: from [209.85.212.182] (HELO mail-wi0-f182.google.com) (209.85.212.182) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Oct 2012 07:15:57 +0000 Received: by mail-wi0-f182.google.com with SMTP id hm2so208269wib.5 for ; Thu, 04 Oct 2012 00:15:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:references:from:content-type:x-mailer:in-reply-to :message-id:date:to:content-transfer-encoding:mime-version; bh=8bEKtwQ6MTP8bRpvT/g57qg/s7wJnKMw3dhj23ziltI=; b=mjf6fkR/1ncJ9a1cJLgpFsBSqyKtZfVQtgQVgYIQsXH4VYJLlxFKFyOdXpb18Xf+8j CMmwwn38FnmXBGVn6HJEJ3uavXvI5n2VSrdTs4iJMysBmH8tThW0sJEmIaFPrCCX5KWU bFUbhtA/w1tlX5rEetdohPxKH4HNuiO0UubnvETphj43VbEvxPol32lWKJ8nKjlKherr CTIpWnnnGfIs2y/LVZrzSjlMzGeB9UV4FzzcVlVPhiVRsD/Ofl9gZ31bIuUNu5nVRyIe gu8AExa4c7hA6DEMkumPUkat+8TBNoON5gcebvNq4CNcj17QGMOtKNVFjz++DN5UDcSS t9ng== Received: by 10.180.80.104 with SMTP id q8mr9238040wix.6.1349334937153; Thu, 04 Oct 2012 00:15:37 -0700 (PDT) Received: from [31.86.35.229] ([31.86.35.229]) by mx.google.com with ESMTPS id hv8sm35327340wib.0.2012.10.04.00.15.33 (version=SSLv3 cipher=OTHER); Thu, 04 Oct 2012 00:15:35 -0700 (PDT) Subject: Re: any good way of filtering out your own _changes? References: <20121003171913.02e33b2b@eee-az> <20121004093513.47fe9a1d@eee-az> From: Nick North Content-Type: text/plain; charset=us-ascii X-Mailer: iPhone Mail (10A403) In-Reply-To: <20121004093513.47fe9a1d@eee-az> Message-Id: Date: Thu, 4 Oct 2012 08:10:24 +0100 To: "user@couchdb.apache.org" Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) I would go for your suggestion of including a source field in the documents.= If multiple instances of the app are a potential problem, then it can gener= ate a UUID on startup and use that as the source. Alternatively you could generate your own doc ids and include the source str= ing in the doc id. That is probably harder as you have to make certain your d= oc ids are unique. Nick On 4 Oct 2012, at 07:35, svilen wrote: > so noone to suggest something? >=20 >>> so i have a local db that replicates bidirectional with several >>> others. an app uses local db, listens to _changes and also puts >>> things sometimes. Any way to avoid it seeing it's own changes? >=20 >>> i guess i can put a manual field e.g. "source" to *each* document or >>> something... but that's not very neat. but may be the only way, >>> hmmm - e.g. how to differ between different copies of same app.. >>> running in parallel. >=20 > svil