You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by Mike Matrigali <mi...@sbcglobal.net> on 2005/05/02 17:09:03 UTC

Re: [PATCH] Derby 218 - Add relaxed durability option

I am looking at committing this patch.

Sunitha Kambhampati wrote:
> A little background: Sometime earlier on the list, Dan posted a fix to 
> make derby go faster with relaxed durability with some flags.  The post 
> is at 
> http://article.gmane.org/gmane.comp.apache.db.derby.user/681/match=relaxed+durability 
> 
> This mode is very useful for unit testing or at development time when 
> recoverability is not required.
> Basically in this mode, syncs are disabled for logs, data writes at 
> checkpoint, page allocation when file is grown; - what this means is 
> that data is not flushed all the way to the disk and in most cases i/o 
> cost is not involved. Note,  code already exists in Derby to do this.
> So for Derby 218, This  patch addresses the following requirements:  1) 
> Have a single property to enable this relaxed durability mode, so it is 
> easy for users  to enable it.
> 2) Print message to derby.log that this mode is enabled
> 3) A way to report boot errors that may be because of this option being 
> enabled. What this maps to is - have a marker to recognize that database 
> was booted in this mode, and then on subsequent boot; if errors happen 
> during recovery - report a message that it could have happened because 
> of this mode being set.
 > ...   rest deleted