Re: Record Locking ???
Date: Wed, 07 May 2003 17:38:55 -0400
Message-ID: <3EB97CEF.EB7E177A_at_boatnerd.com.invalid>
TurkBear wrote:
> Michael Hill <hillmw_at_ram.lmtas.lmco.com> wrote:
>
> >I have a Coldfusion web application that makes calls to Oracle tables,
> >inserts, updates, et. al and one of my users wants to add "Record
> >Locking". I am thinking this is not practical and is only valid in a
> >client-server environment.
> >
> >Am I wrong?
> >
> >Comments?
> Ask your user why he wants to manually do what Oracle will handle automatically?
>
> Just curious...
While Oracle handles row locking automagically within a transaction, the issue as I see it is how to preserve a transaction across multiple web requests. i.e. the interaction is something like
- begin a transaction
- get the data with a select for update
- update the data
- commit or rollback the transaction
The issue is item 2 and item 3 are handled in separate web requests - when the user comes back to update the data, how does he pick up the transaction that he opened in item 1?
There's no reason that I see that would make this technically impossible, but I have no idea how to do it in Cold Fusion.
-- //-Walt // //Received on Wed May 07 2003 - 23:38:55 CEST