Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 83779 invoked from network); 9 Apr 2009 13:32:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Apr 2009 13:32:27 -0000 Received: (qmail 67129 invoked by uid 500); 9 Apr 2009 13:32:23 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 67027 invoked by uid 500); 9 Apr 2009 13:32:23 -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 67015 invoked by uid 99); 9 Apr 2009 13:32:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Apr 2009 13:32:23 +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 alexweb@gmail.com designates 72.14.220.154 as permitted sender) Received: from [72.14.220.154] (HELO fg-out-1718.google.com) (72.14.220.154) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Apr 2009 13:32:13 +0000 Received: by fg-out-1718.google.com with SMTP id l27so708217fgb.3 for ; Thu, 09 Apr 2009 06:31:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:mime-version:content-disposition:content-type :content-transfer-encoding:message-id; bh=qJsAbnCrR3BdTVGcF8el+/DmNebvWlli5PSK4QAe9Oc=; b=d1Kyn6SS8v1cYUcdJ/6qWWbqgNDGaURZAXp3Zxx9h4f0I6uoCPCbk4LWsg3bYiwqkX Y2S3AQ6rlLiSuljLteDwQJp0q9H19Fr3yoO4Rr5L2YYLsCIIV97il/+SUjKBRAnYVxwA tHhSO/avtPc9p3HBilkL10OjRyeaM4YrCgD3A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:mime-version:content-disposition :content-type:content-transfer-encoding:message-id; b=YrD7xA7UhHcXVWwpMsL0Jm+qn05JC/HXYIctRMn5F4G6GDjpFoL5WhLKdGywHHqr9Z /gFzC5ChVv9vYXzZCd1E5lgEt0/4cpAtrzC9xlGQtL0xWJIkNVQbo41hsJQATPHYnE06 V+QGjPf/rYKCIY8oIkwD2crA5kUUl5nGH4VQA= Received: by 10.86.27.19 with SMTP id a19mr1881355fga.29.1239283911990; Thu, 09 Apr 2009 06:31:51 -0700 (PDT) Received: from alex-laptop.localnet ([93.85.58.192]) by mx.google.com with ESMTPS id d4sm233438fga.23.2009.04.09.06.31.50 (version=SSLv3 cipher=RC4-MD5); Thu, 09 Apr 2009 06:31:51 -0700 (PDT) From: Alexander To: user@couchdb.apache.org Subject: Permissions and partial replication Date: Thu, 9 Apr 2009 16:32:03 +0300 User-Agent: KMail/1.11.2 (Linux/2.6.27-14-generic; KDE/4.2.2; i686; ; ) MIME-Version: 1.0 Content-Disposition: inline Content-Type: multipart/alternative; boundary="Boundary-00=_Tjf3JBMnGFtXGeC" Content-Transfer-Encoding: 7bit Message-Id: <200904091632.03736.alexweb@gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org --Boundary-00=_Tjf3JBMnGFtXGeC Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit Hi folks I'm thinking about using couchDB for the next project, but I have a few questions regarding the possibility to replicate docs with permissions respect. Let me to start with an example. Lets's say we have a database which holds a products. Each product is a document with a simple structure: Product { "_id": 123, "category":"category_id_here" "name": "product1", "description": "product1 description" } Category { "_id": 123, "name": "name" "parent_id": "12" } Lets's say we have a category tree: brands / some_brand1 / Product 1 Product 2 Product 3 some_brand2 / Product 5 Product 6 Product 7 We also have a two managers: Manager1 is responsible for products in some_brand1 category and Manager2 is responsible for products in some_brand2 category. Each person can manage products ONLY in his own category. Here is a small mockup of how we want to work. http://img209.imageshack.us/img209/5048/couchdb.png So each manager should be able to replicate data only from his own category. Possible? Not possible? Will be possible in future? --Boundary-00=_Tjf3JBMnGFtXGeC--