Subject | Re: [firebird-support] Re: How to implement SQLServer's WITH(NOLOCK) |
---|---|
Author | Thomas Steinmaurer |
Post date | 2008-04-14T17:15:06Z |
> Thomas Steinmaurer wrote:Right. Thanks. ;-)
>> Not here. ;-)
>>
>> * Two concurrent isql sessions
>> * Both start a read committed transaction
>
> That implies NO_RECORD_VERSION where writers block readers...
>
>> * The first isql session does a SELECT * FROM MYTABLE WITH LOCK
>> * The second isql session does a SELECT * FROM MYTABLE (without WITH LOCK).
>> * The second session gets blocked
>
> Not a surprise at all, the same for a regular UPDATE.
>
> Try RECORD_VERSION and see the difference :-)
To be honest, I wasn't aware that a READ COMMITTED transaction
*defaults* to NO_RECORD_VERSION.
Thanks again.
--
Best Regards,
Thomas Steinmaurer
LogManager Series - Logging/Auditing Suites supporting
InterBase, Firebird, Advantage Database, MS SQL Server and
NexusDB V2
Upscene Productions
http://www.upscene.com