Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 93704 invoked from network); 5 Jan 2010 21:00:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Jan 2010 21:00:41 -0000 Received: (qmail 35933 invoked by uid 500); 5 Jan 2010 21:00:40 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 35858 invoked by uid 500); 5 Jan 2010 21:00:40 -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 35848 invoked by uid 99); 5 Jan 2010 21:00:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jan 2010 21:00:40 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gcdcu-couchdb-user@m.gmane.org designates 80.91.229.12 as permitted sender) Received: from [80.91.229.12] (HELO lo.gmane.org) (80.91.229.12) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jan 2010 21:00:31 +0000 Received: from list by lo.gmane.org with local (Exim 4.50) id 1NSGVc-0005QY-7I for user@couchdb.apache.org; Tue, 05 Jan 2010 22:00:08 +0100 Received: from e180011236.adsl.alicedsl.de ([85.180.11.236]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Jan 2010 22:00:08 +0100 Received: from joscha by e180011236.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Jan 2010 22:00:08 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: user@couchdb.apache.org From: Joscha Feth Subject: Re: Modeling question Date: Tue, 05 Jan 2010 21:59:31 +0100 Lines: 18 Message-ID: References: <7276C7E803379C4BBDE367D6FEF01EFA0EF53112@ITS-HCWNEM02.ds.Vanderbilt.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: e180011236.adsl.alicedsl.de User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0 In-Reply-To: <7276C7E803379C4BBDE367D6FEF01EFA0EF53112@ITS-HCWNEM02.ds.Vanderbilt.edu> Sender: news Hi Timothy, On 05.01.10 20:56, Coffman, Timothy A wrote: > Joscha, > If you emit every A, B, and C, with keys: > for A's : [ id_of_self, null, null ] > for B's : [ id_of_parent, id_of_self, null ] > for C's : [ id_of_grandparent, id_of_parent, id_of_self ] > > Then a query with startkey: [ a, null, null ] and endkey: [ a, {}, {} ] will give you all documents that are A or children of A. With that set, you could determine the appropriate combination of ACL's to use. > > I hope I have that right. I am doing this already, but this only helps on A's, not on B's or C's - any ideas for teh child documents? regards, Joscha