Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 72172 invoked from network); 12 Feb 2009 15:54:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Feb 2009 15:54:31 -0000 Received: (qmail 30293 invoked by uid 500); 12 Feb 2009 15:54:24 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 30254 invoked by uid 500); 12 Feb 2009 15:54:24 -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 30243 invoked by uid 99); 12 Feb 2009 15:54:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Feb 2009 07:54:24 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jwall@google.com designates 216.239.33.17 as permitted sender) Received: from [216.239.33.17] (HELO smtp-out.google.com) (216.239.33.17) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Feb 2009 15:54:15 +0000 Received: from spaceape7.eur.corp.google.com (spaceape7.eur.corp.google.com [172.28.16.141]) by smtp-out.google.com with ESMTP id n1CFrsZ6020040 for ; Thu, 12 Feb 2009 15:53:54 GMT DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1234454034; bh=AovowRS+UJpiKcEQMrRsZT0Uep0=; h=DomainKey-Signature:MIME-Version:In-Reply-To:References:Date: Message-ID:Subject:From:To:Content-Type:X-System-Of-Record; b=SQq0 yWxQJuE17FgfpTSvrYxDJIDnCJnlCX9cCplyYeEHusuPO7oUVMy6tvz5VOaRrUUf4S+ UWzKFIdq7U7TqnQ== DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:date:message-id:subject:from:to: content-type:x-system-of-record; b=gbqt6H8ULgiGH/R1cj64yKFKqrPL02lj+Vrl6pvtiqumIlxVWKrnXNAh6Epy1irBR WjFdCjvuelFM5mIF6LPtA== Received: from el-out-1112.google.com (elem34.prod.google.com [10.126.164.34]) by spaceape7.eur.corp.google.com with ESMTP id n1CFrqRw002072 for ; Thu, 12 Feb 2009 07:53:52 -0800 Received: by el-out-1112.google.com with SMTP id m34so545248ele.25 for ; Thu, 12 Feb 2009 07:53:52 -0800 (PST) MIME-Version: 1.0 Received: by 10.90.113.11 with SMTP id l11mr560997agc.5.1234454031985; Thu, 12 Feb 2009 07:53:51 -0800 (PST) In-Reply-To: <64a10fff0902120746j187aff2bpc1e5585b32007497@mail.gmail.com> References: <4b307fd10902120242v3bbbc93fs92c88503eb632fe9@mail.gmail.com> <64a10fff0902120746j187aff2bpc1e5585b32007497@mail.gmail.com> Date: Thu, 12 Feb 2009 09:53:51 -0600 Message-ID: <7c40ded80902120753j63b1b29dn6c79f9bb0187e010@mail.gmail.com> Subject: Re: playing with tags From: Jeremy Wall To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=0016361e86c0116b010462baba2e X-System-Of-Record: true X-Virus-Checked: Checked by ClamAV on apache.org --0016361e86c0116b010462baba2e Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Why would you lose the ability to map through the data. Nothing prevents the map from working with both kinds of document. What exactly do you see yourself losing there? Sent from my G1 google phone On Feb 12, 2009 9:47 AM, "Dean Landolt" wrote: On Thu, Feb 12, 2009 at 5:42 AM, Nicolas Clairon wrote: > Hi there ! > > I'm pl... This is an issue that has been nagging at me lately. Storing tags in the doc seems like a recipe for disaster (that is, if you consider view contention disaster). I would argue that tags (and other readily changeable user-specific state information like read/unread, favorite, blah blah) should be kept in separate docs and bridged together in views. Of course, doing this means you lose the ability to map through this data (e.g. no tag clouds), so it's a lose/lose right now. This is something I just can't figure out how to get around without a map/reduce/map kind of paradigm. Paul Davis mentioned some ideas about value indexes and view intersections that may help here. Does anyone else have opinions on how best to design for this? Someone floated the article *Accountants Don't Use Erasers* [1] recently that further convinced me this kind of data should be external to the doc in question, but I'm at a loss for how to do this without sacrificing functionality. [1] http://blogs.msdn.com/pathelland/archive/2007/06/14/accountants-don-t-use-erasers.aspx --0016361e86c0116b010462baba2e--