Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 76704 invoked from network); 12 Feb 2009 16:08:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Feb 2009 16:08:05 -0000 Received: (qmail 62890 invoked by uid 500); 12 Feb 2009 16:08:03 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 62523 invoked by uid 500); 12 Feb 2009 16:08:02 -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 62512 invoked by uid 99); 12 Feb 2009 16:08:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Feb 2009 08:08:02 -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 (nike.apache.org: domain of patrick.antivackis@gmail.com designates 209.85.218.163 as permitted sender) Received: from [209.85.218.163] (HELO mail-bw0-f163.google.com) (209.85.218.163) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Feb 2009 16:07:54 +0000 Received: by bwz7 with SMTP id 7so1196162bwz.11 for ; Thu, 12 Feb 2009 08:07:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=H1IijvHezMRgtQNQ2SZA2tm9Iw0z55XjW+gdXhWnWHc=; b=YIqWAUa9HGMyC5/sEbn3usfxEc/ydwyrgW16zBUIdqT+77lrHpZ6+trcpAOBAJW/KU quC9Azk8KPPXLNTT+8ARuHKzF6jzw7hhUCUKVAukF88OVvsKO+vN+G9DQxllzKtqKEtI O9bXxTgfCLt6ECjPrD0eExUbTMzpUXcnI0Phw= 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=DRCLcAaK85/32yUxS1pJFs+8xsePwxvrKcKsMYoBVqTmlr3wkmielqw23cKxmmDgMi WgBrcvWOLBFCaZsQSJDKXZJFaY5cCF2tr8MVZ1mYC623iUq/xg6kJwN127oTPpyqjGIA VViUT9NE1rC2f3F46i/D18RVOOv6ROR+JBdzM= MIME-Version: 1.0 Received: by 10.223.103.147 with SMTP id k19mr56647fao.0.1234454853178; Thu, 12 Feb 2009 08:07:33 -0800 (PST) In-Reply-To: <5e6458d0902120759r24d7010evef257a4674d94187@mail.gmail.com> References: <4b307fd10902120242v3bbbc93fs92c88503eb632fe9@mail.gmail.com> <64a10fff0902120746j187aff2bpc1e5585b32007497@mail.gmail.com> <5e6458d0902120759r24d7010evef257a4674d94187@mail.gmail.com> Date: Thu, 12 Feb 2009 17:07:33 +0100 Message-ID: <7060483c0902120807r47420629j705905910f2c8f4@mail.gmail.com> Subject: Re: playing with tags From: Patrick Antivackis To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=001636c5a8e603d5920462baeb8e X-Virus-Checked: Checked by ClamAV on apache.org --001636c5a8e603d5920462baeb8e Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit > but now, I want all articles wich are tagged with "couchdb" *and* "python" > (I want the article1). Is there a method to do it directly with CouchDB views ? > Something like that : The only way to do that is to emit all the possible tags combinations for an article. In order to decrease the number of combinations, you first order them by alphabetical order, then you emit them. For the query, you will order alphabetically the tags you are looking for and then use a starkey/endkey view retrieval. 2009/2/12 Kerr Rainey > 2009/2/12 Dean Landolt : > > 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. > > Erm... why do think tags for a blog post would be rapidly changing? > They would be set by the owner of a post and that's it. The > likelihood of a tag changing in this scenario is no greater than the > post being edited. It's meta info, but clearly part of the post. You > won't have many people try to update the same post, or at least the > contention on that is very low. > > -- > Kerr > --001636c5a8e603d5920462baeb8e--