Subject | Re: AW: AW: AW: [Firebird-Java] Do I need to commit every transaction if I'm using jaybird? |
---|---|
Author | Jim Starkey |
Post date | 2005-02-02T16:58:45Z |
Steffen Heil wrote:
to control transactions. Unless you are doing something completely
trivial, you should turn auto-commit off and manager transactions
yourself. There is no free lunch in auto-commit: transactions are
started and committed on your behalf. Auto-commit, at least for
Firebird, will be no faster than an explicit commit after every
statement, and a great deal slower that performing commits at the end of
a logical transaction.
Auto-commit basically exists for database system that do record locking
where a causual record access will block updates until a user explicitly
concludes the transaction or terminates the session. For a database
using multi-generational concurrency control, it buys you nothing the
overhead.
Whether for consistence or performances, formal transactions are good
things.
--
Jim Starkey
Netfrastructure, Inc.
978 526-1376
> >Sorry. Database systems provide commit and rollback statement or calls
> > Database semantics provide explicit transaction control. Use it.
>
> Sorry, I do not understand your statement.
>
to control transactions. Unless you are doing something completely
trivial, you should turn auto-commit off and manager transactions
yourself. There is no free lunch in auto-commit: transactions are
started and committed on your behalf. Auto-commit, at least for
Firebird, will be no faster than an explicit commit after every
statement, and a great deal slower that performing commits at the end of
a logical transaction.
Auto-commit basically exists for database system that do record locking
where a causual record access will block updates until a user explicitly
concludes the transaction or terminates the session. For a database
using multi-generational concurrency control, it buys you nothing the
overhead.
Whether for consistence or performances, formal transactions are good
things.
--
Jim Starkey
Netfrastructure, Inc.
978 526-1376