Subject | Re: [firebird-support] How to hold lock on record |
---|---|
Author | Bogusław Brandys |
Post date | 2004-10-29T11:31:13Z |
Bogusław Brandys wrote:
answered) So, when I find some info related to this issue ?
I mean: how can I know that BLR compiled code is attempting to lock
record when particular update instruction is reached in SP or just when
SP is started or readed from cache ?
Regards
Bogusław Brandys
> Assume that I had to update some integer value in sigle row inSorry if this is stupid question....(It seems so, becouse nobody
> particular table and I hold lock on this single record using for example
>
> update table set number=number + 1 where id=?
>
> If I do that in the final stage of my transaction instead of just on
> start would this row be shorter locked or it doen't matter ?
> Updating this row is bottleneck for my application right now, but I
> suspect becouse I lock record (and increment stored value) just in ON
> BEFORE INSERT trigger.
>
>
>
> Regards
> Bogusław Brandys
>
answered) So, when I find some info related to this issue ?
I mean: how can I know that BLR compiled code is attempting to lock
record when particular update instruction is reached in SP or just when
SP is started or readed from cache ?
Regards
Bogusław Brandys