Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 20257 invoked from network); 25 Mar 2011 15:40:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Mar 2011 15:40:42 -0000 Received: (qmail 21605 invoked by uid 500); 25 Mar 2011 15:40:40 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 21571 invoked by uid 500); 25 Mar 2011 15:40: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 21563 invoked by uid 99); 25 Mar 2011 15:40:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Mar 2011 15:40:40 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of nebupookins@gmail.com designates 209.85.216.180 as permitted sender) Received: from [209.85.216.180] (HELO mail-qy0-f180.google.com) (209.85.216.180) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Mar 2011 15:40:34 +0000 Received: by qyk10 with SMTP id 10so862467qyk.11 for ; Fri, 25 Mar 2011 08:40:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=Hzq3R5jaOGV/mAF29YkOo2K0JmaJ9tW8hrOAukLrkEI=; b=Rz0xh0marofH9Y3pPi/sVxQdw7fOJoWp4Oj/rrr1s/E4chz7LuROBJhgC9hhbI2Oxs K9M93eyFd458PA3QEprxYQh+/W6dhl7ad2Ew81lzlNN1cff/Tt/gaFhcr/15kQ6yf/PJ cf79KkukquBYdsdqLRxfJT1o/mAM0YljKmDsQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=oTG1DJtapxyBEG7FBpvZGH6xtmgmqpsrjj4REjXcXwy3XxMK/JT2UtweWvW8Jw2nGf pydN5teU2NvsJubdLWaY52HBUipCjpWKHed9GP5ySJElO7KMT6qhOtbVPusQ2Hb89r3k 1KKndp++Ozb2g8fIqbhBdmwkaCgsifH41HULQ= MIME-Version: 1.0 Received: by 10.229.62.6 with SMTP id v6mr764502qch.223.1301067613422; Fri, 25 Mar 2011 08:40:13 -0700 (PDT) Received: by 10.229.228.83 with HTTP; Fri, 25 Mar 2011 08:40:13 -0700 (PDT) In-Reply-To: References: Date: Fri, 25 Mar 2011 11:40:13 -0400 Message-ID: Subject: Re: suggestions on how to structure a delicious clone From: Nebu Pookins To: user@couchdb.apache.org Content-Type: text/plain; charset=UTF-8 On Fri, Mar 25, 2011 at 9:25 AM, bryan rasmussen wrote: > > I assumed every bookmark would be a little document consisting of > mandatory name, mandatory uri(s) [can be either a string or array], > mandatory user id, description, tags > [...] > > Also I need to be able to write queries that return a specific users > bookmarks. What would be the suggested methodology for that I'm still new at CouchDB, but it seems to be that the easiest way to do that would be to construct a view such that the user id is the key. That way you can use the startKey and endKey parameter to isolate a specific set of bookmarks belonging to only one user. - Nebu