in reply to DBI and table locking
If I lock a table, and another program tries to access it, what happens? ... Does it just block until it becomes unlocked, or is it supposed to return a failure?
This very much depends on what sort of lock you take on a table. If you take a READ lock, then everything else will still be able to read the table also, but any updates to it will be stalled until you release your lock.
If you take a WRITE lock, however, then nothing can read or write the table(s) concerned until you release your lock.
All locked queries will just stall, waiting for the lock to release, rather than failing.
Tony
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: DBI and table locking
by mp3car-2001 (Scribe) on Jan 07, 2001 at 20:59 UTC | |
by tilly (Archbishop) on Jan 07, 2001 at 23:36 UTC | |
by salvadors (Pilgrim) on Jan 07, 2001 at 23:51 UTC | |
by tilly (Archbishop) on Jan 07, 2001 at 23:59 UTC | |
by salvadors (Pilgrim) on Jan 08, 2001 at 00:06 UTC | |
|