Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 77071 invoked from network); 16 Dec 2008 19:51:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Dec 2008 19:51:48 -0000 Received: (qmail 62389 invoked by uid 500); 16 Dec 2008 19:51:59 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 62364 invoked by uid 500); 16 Dec 2008 19:51:59 -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 62349 invoked by uid 99); 16 Dec 2008 19:51:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Dec 2008 11:51:59 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jchris@gmail.com designates 209.85.132.246 as permitted sender) Received: from [209.85.132.246] (HELO an-out-0708.google.com) (209.85.132.246) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Dec 2008 19:51:44 +0000 Received: by an-out-0708.google.com with SMTP id b2so1358808ana.5 for ; Tue, 16 Dec 2008 11:51:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Zssxqux33EHeVLKcliVs0S/iCgmjeZvX0Iep7TbG3h8=; b=eEhszaUH6bJUL0IhMHPLHKNA3at0hNSBTYRSVDgwyldjBa2oRX3+dcWuALQN4lWlQi GGZEVinooZpuZKT0vmguXK7lt5EnQiGGY+wnWQEgFRxjH9cZefpvvOUzEtBb27y9M4o4 6upqIUdmkd2f9aMRVgVNLgIcOCqXun47eFO9M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=kWjlchXB0rJ/dHNcHYsW7o6SGf3VfRjts0wLLTPz/EkukllXvYpm4zJ51aXunONr5a lxFn2hyLiATk4YR1q1/6uNvOfQS/KjnWgCUT6fvukEyYS8JQRRg5l9rcscnJ1I0X0KRW nNj9N5ZTIEI9YCJEorpjaCz3b/8s520MQUol8= Received: by 10.65.93.19 with SMTP id v19mr7660527qbl.74.1229457082652; Tue, 16 Dec 2008 11:51:22 -0800 (PST) Received: by 10.64.101.8 with HTTP; Tue, 16 Dec 2008 11:51:22 -0800 (PST) Message-ID: Date: Tue, 16 Dec 2008 11:51:22 -0800 From: "Chris Anderson" To: user@couchdb.apache.org Subject: Re: General Q about CouchDB In-Reply-To: <389be9770812161146ldcbd435l32300db81573ebd0@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <389be9770812161146ldcbd435l32300db81573ebd0@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Dec 16, 2008 at 11:46 AM, Christopher McComas wrote: > Would it be wrong to try to do the category piece as related in CouchDB? > What would be the best way to do it, so that you can have a page, > myblog.com/categories/this-category/ that'd then display all the entries for > that category? What would be proper? Having a category field on the blog post itself is a fine way to do this. Eg: { "title":"Blah", "author":"Chris", "category":"music", "date": ... } Writing a view that sorts posts by category and date would be simple with this sort of data structure. Of course if you wanted to rename a category later you'd need to touch all the documents that listed it, so this solution is more like tagging than categories, but should fulfill the need. -- Chris Anderson http://jchris.mfdz.com