Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 765 invoked from network); 13 May 2010 19:01:27 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 May 2010 19:01:27 -0000 Received: (qmail 64255 invoked by uid 500); 13 May 2010 19:01:26 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 64177 invoked by uid 500); 13 May 2010 19:01:26 -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 64169 invoked by uid 99); 13 May 2010 19:01:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 May 2010 19:01:26 +0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=AWL,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jchris@gmail.com designates 74.125.83.180 as permitted sender) Received: from [74.125.83.180] (HELO mail-pv0-f180.google.com) (74.125.83.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 May 2010 19:01:18 +0000 Received: by pvc7 with SMTP id 7so708381pvc.11 for ; Thu, 13 May 2010 12:00:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:content-type:mime-version :subject:from:in-reply-to:date:content-transfer-encoding:message-id :references:to:x-mailer; bh=3GNkgcHux5nJfVtSopC2hp8HKVT4SEeN5W7+dtpt3n0=; b=YsIK9ebYnPWzSNq1O0FbAr+QXjGC1hgevtts+GXDfgllA1SGcXFP1QPQpJSTvQqfgv 4SrYiQHtvA/JNgEAeki5r15LjG53If+0wyanQc9BSO3ZjHh4m/1+jLCIQnRs5XFSBqEh oJA1q4lg4Qrej6V0+Zu7AvveodZVyIOJExeZM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=HWkuyJti47dLKe6ag582ObFfSvvdEDjcHeOMePBKGpjjPpbaVwhCOF0HSLxg5I1Upp M2o12fL9nbFTNE847L1icxqAxsTkdA8YV61o7/FTV/Zd9M4ac7/GhbgHWsXzLR8/7sdc znQ33OaNSJQWRzDEy0JMhAjnIAzYDn0mcpW/8= Received: by 10.141.14.15 with SMTP id r15mr6527191rvi.139.1273777256893; Thu, 13 May 2010 12:00:56 -0700 (PDT) Received: from [192.168.1.101] (c-98-248-172-14.hsd1.ca.comcast.net [98.248.172.14]) by mx.google.com with ESMTPS id b10sm1325634rvn.3.2010.05.13.12.00.38 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 13 May 2010 12:00:42 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1078) Subject: Re: large attachments/huge databases ?` From: J Chris Anderson In-Reply-To: <5625AF56-BC6C-4C4E-A675-1D47711C97B9@googlemail.com> Date: Thu, 13 May 2010 12:00:34 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <02D23147-0128-454A-87BF-169CDE6D35CF@gmail.com> References: <4FD426D8-F807-4FCE-8B98-36B9B0B2C058@googlemail.com> <4BEBCDAB.4070708@digitalgott.de> <20100513160136.GB9782@seblaptop> <4BEC2A4C.4090303@digitalgott.de> <2C9F0F2E-F87B-4BC7-B55D-7D7A2E965428@googlemail.com> <4BEC43B3.8070807@digitalgott.de> <5625AF56-BC6C-4C4E-A675-1D47711C97B9@googlemail.com> To: user@couchdb.apache.org X-Mailer: Apple Mail (2.1078) On May 13, 2010, at 11:35 AM, Sebastian Cohnen wrote: >=20 > when you need versioning, you need to implement it explicitly. The simplest versioning scheme is for the client to store the string = representation of a document as served by CouchDB. While updating the = document contents, the original string representation is sent back as a = new attachment. This has the advantage that versions will replicate together, and they = can be manually pruned by deleting individual attachments. This should be a trivial addition to jquery.couch.js or couch.js, if = anyone's up for hacking. Chris