Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 55892 invoked from network); 18 Mar 2008 08:26:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Mar 2008 08:26:06 -0000 Received: (qmail 13980 invoked by uid 500); 18 Mar 2008 08:26:04 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 13953 invoked by uid 500); 18 Mar 2008 08:26:04 -0000 Mailing-List: contact couchdb-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-user@incubator.apache.org Delivered-To: mailing list couchdb-user@incubator.apache.org Received: (qmail 13944 invoked by uid 99); 18 Mar 2008 08:26:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Mar 2008 01:26:04 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [195.41.46.235] (HELO pfepa.post.tele.dk) (195.41.46.235) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Mar 2008 08:25:23 +0000 Received: from pascal.widetrail.dk (0x503ed345.arcnxx11.adsl-dhcp.tele.dk [80.62.211.69]) by pfepa.post.tele.dk (Postfix) with ESMTP id 195CBFAC078 for ; Tue, 18 Mar 2008 09:24:44 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by pascal.widetrail.dk (Postfix) with ESMTP id 7A0DB31A27 for ; Tue, 18 Mar 2008 09:29:29 +0100 (CET) Received: from pascal.widetrail.dk ([127.0.0.1]) by localhost (pascal.widetrail.dk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27037-10 for ; Tue, 18 Mar 2008 09:29:23 +0100 (CET) Received: from www.widetrail.dk (localhost [127.0.0.1]) by pascal.widetrail.dk (Postfix) with ESMTP id A7FF1319D9 for ; Tue, 18 Mar 2008 09:29:23 +0100 (CET) Received: from 193.3.141.122 (SquirrelMail authenticated user sh) by www.widetrail.dk with HTTP; Tue, 18 Mar 2008 09:29:23 +0100 (CET) Message-ID: <55481.193.3.141.122.1205828963.squirrel@www.widetrail.dk> In-Reply-To: <1205753351.7678.18.camel@localhost> References: <1205753351.7678.18.camel@localhost> Date: Tue, 18 Mar 2008 09:29:23 +0100 (CET) Subject: Re: Relying on revisions for rollbacks From: =?iso-8859-1?Q?S=F8ren_Hilmer?= To: couchdb-user@incubator.apache.org User-Agent: SquirrelMail/1.4.5 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: amavisd-new at widetrail.dk X-Virus-Checked: Checked by ClamAV on apache.org Hi all, Why not use systems for what they where designed to do? A solution could be to integrate couchdb with a prober version control system (darcs, git, svn, ...) and keep a history listing attached to the document. I thought that couchdb could send messages to a registered Erlang process for handling the versioning, when the document was created/updated/deleted. It would then be possible to write different callback handlers for the different version control backends. The tricky part as I see it, is how to retrieve the revisions from the version control. The attached history could come in handy here I guess. Does this make sense? --S�ren -- S�ren Hilmer, M.Sc., M.Crypt. wideTrail Phone: +45 25481225 Pilev�nget 41 Email: sh@widetrail.dk DK-8961 Alling�bro Web: www.widetrail.dk On Mon, March 17, 2008 12:29, Shahar Evron wrote: > Hi all, > > There's a thing not entirely clear to me from the docs I've read: > > If I want to create, let's say, a Wiki that keeps old reversions of a > document and allows rollback and comparison between revisions - can I > rely on CouchDB's internal revisioning, or should I implement this > myself? > > As far as I understood, CouchDB does not keep old revisions indefinitely > - so if I update a document, it's previous revisions might be deleted > after a while. > > Is this true? > > Thanks, > > Shahar. > > > > -- > Best Regards, > > Shahar Evron > > Senior PHP Specialist Product Group > Zend Technologies >