Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 18613 invoked from network); 6 Dec 2009 22:26:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Dec 2009 22:26:11 -0000 Received: (qmail 69080 invoked by uid 500); 6 Dec 2009 22:26:10 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 68985 invoked by uid 500); 6 Dec 2009 22:26:10 -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 68973 invoked by uid 99); 6 Dec 2009 22:26:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Dec 2009 22:26:10 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [63.249.119.34] (HELO server.rogerbinns.com) (63.249.119.34) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Dec 2009 22:26:07 +0000 Received: from [192.168.1.53] (unknown [192.168.1.53]) by server.rogerbinns.com (Postfix) with ESMTPSA id 1B7FD211202 for ; Sun, 6 Dec 2009 14:25:47 -0800 (PST) Message-ID: <4B1C2F6A.1070506@rogerbinns.com> Date: Sun, 06 Dec 2009 14:25:46 -0800 From: Roger Binns User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: user@couchdb.apache.org Subject: Re: Design Question References: <741a4d620912061401s172d43d2pf2a84ae2d3589150@mail.gmail.com> In-Reply-To: <741a4d620912061401s172d43d2pf2a84ae2d3589150@mail.gmail.com> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Matthew Gamble wrote: > I'm sorry if a question like this has been asked > before, but I couldn't find anything in the archives that was quite the same > as what I'm trying to do. There indeed was a similar discussion. One of the final conclusions was that it would be best to have each user plus their data stored in a separate DB. The reason for this is that it makes the security rules easier to define and also makes more sense for replication. (Presumably you want to eventually allow the users to run a personal CouchDB with the same database.) > attachment but that made it very hard to search the data as it required the May be helpful http://wiki.apache.org/couchdb/Full_text_search > Or is it best to put each user as their own database and store the address > books / VCards as documents? That would be most natural. In theory you can write an update handler that parses the vCard into fields and makes them keys of the doc. If you do this then the full text search should work really easily. Roger -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkscL2oACgkQmOOfHg372QSAwACdGdOXBMw9W7a5jLAeXPHGGz27 Za4An3KylQT6Z788a09Nr1MOH2jiXeFU =AJpY -----END PGP SIGNATURE-----