Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 49725 invoked from network); 10 Nov 2010 11:49:43 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Nov 2010 11:49:43 -0000 Received: (qmail 29689 invoked by uid 500); 10 Nov 2010 11:50:13 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 29364 invoked by uid 500); 10 Nov 2010 11:50: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 29356 invoked by uid 99); 10 Nov 2010 11:50:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 11:50:09 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ian.hobson@ntlworld.com designates 81.103.221.49 as permitted sender) Received: from [81.103.221.49] (HELO mtaout03-winn.ispmail.ntl.com) (81.103.221.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 11:49:59 +0000 Received: from aamtaout04-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout03-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20101110114939.CUTD23441.mtaout03-winn.ispmail.ntl.com@aamtaout04-winn.ispmail.ntl.com> for ; Wed, 10 Nov 2010 11:49:39 +0000 Received: from [192.168.0.12] (really [86.12.69.109]) by aamtaout04-winn.ispmail.ntl.com (InterMail vG.3.00.04.00 201-2196-133-20080908) with ESMTP id <20101110114939.CELU25656.aamtaout04-winn.ispmail.ntl.com@[192.168.0.12]> for ; Wed, 10 Nov 2010 11:49:39 +0000 Message-ID: <4CDA86C0.3060303@ntlworld.com> Date: Wed, 10 Nov 2010 11:49:20 +0000 From: Ian Hobson User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.12) Gecko/20101027 Lightning/1.0b2 Mnenhy/0.8.3 Thunderbird/3.1.6 MIME-Version: 1.0 To: user@couchdb.apache.org Subject: Re: Design considerations References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Cloudmark-Analysis: v=1.1 cv=JvdXmxIgLJv2/GthKqHpGJEEHukvLcvELVXUanXFreg= c=1 sm=0 a=8nJEP1OIZ-IA:10 a=pGLkceISAAAA:8 a=lugr5kw3NY5FS_rsrtMA:9 a=Il40GBWHnDbM6z-vMkYA:7 a=T5tKnr-T2SL_s2BqM668LolneBQA:4 a=wPNLvfGTeEIA:10 a=MSl-tDqOz04A:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 X-Virus-Checked: Checked by ClamAV on apache.org On 09/11/2010 19:40, roger.moffatt@gmail.com wrote: > Thanks Zach, that's most helpful. > > Regarding the number of databases that can be open at once, how > quickly are the connections closed down? If a user loads a web page > (via a server side application layer) which accesses their database > for example, is their connection closed pretty much immediately, or > does it linger around for a while? If so ... how long is "a while"? > Does this make sense? I'll give some thought to the sharding we could > use to keep within sensible limits in the meantime. > > Shame about COPY not working between databases, but I guess not > surprising. Replication filters sound interesting ... and looking at > the docs I see I can do named document replication, which is > effectively a COPY and hence perfect I think? > >> Finally, you'll really need to consider if/how/when folks will update >> this data. If two users both want to update the same document on their >> slices, and replicate their modifications back to the central >> database, you're going to have to build conflict resolution into your >> system. > Experience shows that data tends to be edited shortly after document > creation and rarely thereafter. Equally it's almost always edited by > the person that created it - so the two users simultaneously editing a > document scenario will be extraordinarily rare, but we will indeed > need to handle conflict resolution if it happens. I've seen that in > action with some of my tests and think that should all be fine. > Hi Roger, An idea occurs to me. If you have one central database containing all the documents, then you would not have the vast requirements of disk space. Each user has his own, small database of index records. When he wants a document the software would have to use the index document to get the _id in the main database and load that. You may have to work round cross site scripting issues either by using a proxy or writing code run on the client. No sure. Please treat these ideas as a start point - I'm no couchDB expert. Perhaps someone who knows can comment? Regards Ian