[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: When to use Berkeley transactions.

From: Branko Čibej <brane_at_xbc.nu>
Date: 2003-02-21 19:19:17 CET

Glenn A. Thompson wrote:

> I don't get this. If nothing changed why all the fsyncs. They are not
> related to the locks are they? They are only releated to the log
> flushes. Right?

And to environment cleanup, but yes, the log flushes are the major
slowdown. Any time you create and commit a transaction, BDB will write a
bit of into a log file even if you don't make any changes. I don't konw
_what_ it writes, but I guess it's probably bookkeeping.

> I wonder if read-only transactions were aborted instead of commited
> what would happen?

Aaargh! The bookkeeping is still there (more so, I'd guess), and on top
of that, the code becomes totally unreadabla. I can see it now... a ton
of questions to the tune, "Why're we aborting this transaction if
nothing failed?"

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Feb 21 19:20:04 2003

This is an archived mail posted to the Subversion Dev mailing list.