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 55B82C487 for ; Tue, 22 May 2012 17:10:53 +0000 (UTC) Received: (qmail 4066 invoked by uid 500); 22 May 2012 17:10:51 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 4023 invoked by uid 500); 22 May 2012 17:10:51 -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 4014 invoked by uid 99); 22 May 2012 17:10:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 May 2012 17:10:51 +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 (athena.apache.org: domain of bchesneau@gmail.com designates 209.85.215.52 as permitted sender) Received: from [209.85.215.52] (HELO mail-lpp01m010-f52.google.com) (209.85.215.52) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 May 2012 17:10:45 +0000 Received: by lahj13 with SMTP id j13so6016292lah.11 for ; Tue, 22 May 2012 10:10:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=b5auJNGQS+kcDJSF8umGaofTrYE1Fv3EvInHeC+5Tp8=; b=tI64t/tgtJx/ABKTJQKtgC9JACT3X19snmeDps1IhhOH7DaOiHrFl9DzeyL1ZXgkyk HUtbNZ2LXzJvQ66m82MukSaoHvCkgZibVY8YsQ/afEVtmCyuCH//1AbrsCr3IoBfHyhi SC9nIRbbCvbkEYXblu9DbMjTPuaHw7JFila1c/+gWBLQ4FUVOx6DfT7tUjO+c+K1evB7 JfosAtlnhMKsTkq4MJ4W5OcFeZvmKfwf0FUPJjPqJZBcl1kOeKAdM3D4z1c9WGcSwETQ 3PRRkq/lXKeaFFgAR7mtV4kqoT1+1rLq8s5Q0K38X6xGAQIB+BRLKwYD9xYkxYrkAp8H /Few== MIME-Version: 1.0 Received: by 10.152.109.166 with SMTP id ht6mr24005353lab.46.1337706623955; Tue, 22 May 2012 10:10:23 -0700 (PDT) Received: by 10.112.28.196 with HTTP; Tue, 22 May 2012 10:10:23 -0700 (PDT) In-Reply-To: <5CE5E627D3974CE18853BFCA6942C520@martynus.net> References: <5CE5E627D3974CE18853BFCA6942C520@martynus.net> Date: Tue, 22 May 2012 19:10:23 +0200 Message-ID: Subject: Re: per-user databases & collaboration problem From: Benoit Chesneau To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Tue, May 22, 2012 at 5:19 PM, Gregor Martynus wrot= e: > Hey everyone, > > Imagine the following setup: 3 databases with 2 cont. replications: > > "user/joe" > =A0 =A0 =A0|| > =A0 =A0 =A0|| cont. replication (filtered) > =A0 =A0 =A0|| > =A0 =A0 =A0\/ > "shared/123" > =A0 =A0 =A0|| > =A0 =A0 =A0|| cont. replication > =A0 =A0 =A0|| > =A0 =A0 =A0\/ > "user/sarah" > > Joe (user/joe) is sharing a list of documents with an extra database (sha= red/123) and a filtered replication. Sarah > (user/sarah) subscribed to the Joe's shared documents with another cont. = replication. > > So far, so awesome. > > And now the Problem: > > 1. Sarah deletes Joe's documents and stops the replication. > 2. Sarah changes her mind, she wants to have the documets back again > 3. it doesn't work, because new revisions have been added for each delete= d document, the shared documents do not get replicated because of the confl= icts. > > And here I am, and don't see =A0a "couch way" to solve this problem. Neit= her do I see a simple workaround. > > Is there anything you can think of, to solve or work around this problem?= Or is this kind of "sharing" between user databases broken by design? > > -- > Gregor > Maybe a solution would be to save each version of the document as a document. Then Sarah would continue to get each changes even if she stopped to follow Joe for a time. In short don't change a document but create a new one each time you make a change in. - benoit