Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: frequent commits

Re: frequent commits

From: Walt <walt_askier_at_SHOESyahoo.com>
Date: Tue, 17 Jan 2006 14:53:46 -0500
Message-ID: <eXbzf.2863$yb2.1161@news.itd.umich.edu>


xhoster_at_gmail.com wrote:
> The main argument against frequent commits is that you should commit
> when the transaction is done, and if that isn't frequent than the commits
> shouldn't be either.

True.

> A secondary argument is that commits are slow.

Commits are actually pretty fast. The thing is, it's no more costly to commit a transaction that updates 10,000 rows than it is to commit a transaction that updates only one row. But if you take that 10,000 row transation and commit, say every 10 rows you have to do 1000 commits, which will be ~1000x more expensive than one commit.

//Walt Received on Tue Jan 17 2006 - 13:53:46 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US