Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 5378 invoked from network); 13 May 2010 19:26:56 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 May 2010 19:26:56 -0000 Received: (qmail 88922 invoked by uid 500); 13 May 2010 19:26:55 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 88885 invoked by uid 500); 13 May 2010 19:26:55 -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 88877 invoked by uid 99); 13 May 2010 19:26:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 May 2010 19:26:55 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jchris@gmail.com designates 209.85.222.172 as permitted sender) Received: from [209.85.222.172] (HELO mail-pz0-f172.google.com) (209.85.222.172) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 May 2010 19:26:46 +0000 Received: by pzk2 with SMTP id 2so1626056pzk.29 for ; Thu, 13 May 2010 12:26:24 -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=oYu+G0PNv/QvtSlR+2VysV6v43mXFKffrEPOBgPqFhs=; b=g67sHsFCWA+qVi0u7RuXkuMl8Lg3km1vwM+VMMi+NU/F4XbEQgLbCLG1kgeNXwFA98 ApJf8JFqGDUTTHvqeYWbnvlRtuYUiy3EYGm88P82vGoDlsY3iHXPEXlOkGrdVJe+o1Si sDxU6eCuQa9roh3KSLTDK4qmlYlqvdiq7HX28= 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=n1jGjx03HlExJkg5GA3tBPzmbjkIBoVfImACV4elALol2U8PvNKVE9XOqS4qIGS9Cx IKXgNKU8OuQGxOy86JLN4xgeaSSosYg10hv8Zbkf2Xojbl2APayiUeVbPzdd5hR24VYM Viav7tNbOv33ggr+UoHA5r3tjKnEWaPF+M+FA= Received: by 10.140.87.40 with SMTP id k40mr6504673rvb.251.1273778784440; Thu, 13 May 2010 12:26:24 -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 q10sm1342763rvp.8.2010.05.13.12.26.09 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 13 May 2010 12:26:14 -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: <4BEC4F33.7060503@digitalgott.de> Date: Thu, 13 May 2010 12:26:06 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: 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> <02D23147-0128-454A-87BF-169CDE6D35CF@gmail.com> <4BEC4F33.7060503@digitalgott.de> To: user@couchdb.apache.org X-Mailer: Apple Mail (2.1078) X-Virus-Checked: Checked by ClamAV on apache.org On May 13, 2010, at 12:12 PM, c.Kleinhuis wrote: > J Chris Anderson schrieb: >> On May 13, 2010, at 11:35 AM, Sebastian Cohnen wrote: >>=20 >> =20 >>> when you need versioning, you need to implement it explicitly. >>> =20 >>=20 >>=20 >> 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. >>=20 >> This has the advantage that versions will replicate together, and = they can be manually pruned by deleting individual attachments. >>=20 >> This should be a trivial addition to jquery.couch.js or couch.js, if = anyone's up for hacking. >> =20 > i need ALL versions :D from the beginning to current version, what = about saving > previous versions as an array field containing everything but the = array field for saving the versions ? >=20 One nice thing about attachments is that history doesn't bloat the view = server memory footprint (attachments aren't available in views). It also takes history out of the application space, so you can pretty = much "add" history to normal applications with the attachment history = method. Chris > thx >=20