Subject | Re: [firebird-support] Is UPDATE in read-committed transaction atomic? |
---|---|
Author | Ann W. Harrison |
Post date | 2007-11-02T18:18:50Z |
jaratulpas wrote:
are you assuming that read-committed must be faster because it's
faster in other databases?
though it will lead to deadlocks.
Regards
Ann
> I have an application which uses read-committed transactions forHave you actually tested the performance of the two modes, or
> performance reasons.
are you assuming that read-committed must be faster because it's
faster in other databases?
> Is the statementNo, the row isn't locked at all, but yes, the statement is safe,
>
> update object set cnt = cnt + 1 where id = 'a';
>
> safe, i.e. is the row locked for the duration of the update statement?
>
though it will lead to deadlocks.
Regards
Ann