Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 31775 invoked from network); 7 Aug 2009 15:05:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Aug 2009 15:05:17 -0000 Received: (qmail 25395 invoked by uid 500); 7 Aug 2009 15:05:23 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 25328 invoked by uid 500); 7 Aug 2009 15:05:23 -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 25318 invoked by uid 99); 7 Aug 2009 15:05:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Aug 2009 15:05:23 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jwalgran@gmail.com designates 209.85.219.215 as permitted sender) Received: from [209.85.219.215] (HELO mail-ew0-f215.google.com) (209.85.219.215) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Aug 2009 15:05:12 +0000 Received: by ewy11 with SMTP id 11so2086582ewy.11 for ; Fri, 07 Aug 2009 08:04:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=e7113J10jWrW4XkFIAJ6tTvVhAieajZ/XX/IxRXbguU=; b=Yfd2TXn2UCjyPYHdw/t1loSNrEdOOj/JdzbObvL7u8tGRR7+vCh9MKrKqy3G2W29BB 1xE5hCIgS1JeUyvNdRoDSWzFap4A6C3AR121hvIsZGvVUFGhNxwaI6vlRwoYM+srmSQ+ MJJLiHBQNRR2uxxZ6MezrkQtmM5rfla7HcB34= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding; b=s5NxtESo/bOyeHhQvd4bABmGgFtNVYU7lqBvfuu6BjPVGOechSTvtnosdI+4AV2nfg VPh2ouNej/T/Ee9aU6cgiEsE1tB0MALkCK2SDmUnHqGMOIZiWnYcKaHxUBgyH2LdmHo6 Jie+HNoJZtC2oaX41ofj/8e9lJ56QPFJt+xy8= MIME-Version: 1.0 Received: by 10.216.72.209 with SMTP id t59mr261939wed.27.1249657490275; Fri, 07 Aug 2009 08:04:50 -0700 (PDT) Reply-To: jwalgran@gmail.com In-Reply-To: <4A7C3EA6.6070704@canonical.com> References: <4A7C3EA6.6070704@canonical.com> Date: Fri, 7 Aug 2009 11:04:50 -0400 Message-ID: Subject: Re: Best practice: adding an app specific chunk to a document From: Justin Walgran To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Eric, that is exactly the type of thing I was looking to support in my app. Are other app developers using the convention of storing app specific data under a "doc.application_annotations.[namespace]" key? It seems like agreeing to a standard is a good way to go. That said, if I had a database of job applicant documents, then the key "application_annotations" will likely collide with the actual data. How would you handle this situation in desktopcouch? -Justin > We've decided to have things that all applications agree on as a top leve= l > field in the document, described by a schema (so a contact would have > first_name and last_name, and some other fields that every application wo= uld > conceaivably be interested in) and then there is a dictionary called > 'application_annotations' where each application has its own namespace in > which it can store application specific data, or data that not all > applications agree on. > > This is a flexible way to do things in that it doesn't impose a lot on > applications that work with it (you don't *have* to look at > application_annotations if you don't need it, all we ask is that you don'= t > delete it) and it makes complicated use cases possible. > > [1] https://code.launchpad.net/desktopcouch > =A0 =A0http://www.freedesktop.org/wiki/Specifications/desktopcouch > > -- > - eric casteleijn > https://launchpad.net/~thisfred > http://www.canonical.com >