Re: row vs page locking...
From: Dan Guzman (guzmanda_at_nospam-online.sbcglobal.net)
Date: 09/05/04
- Next message: Kalen Delaney: "Re: row vs page locking..."
- Previous message: John: "Re: row vs page locking..."
- In reply to: Randall Sell: "row vs page locking..."
- Next in thread: ben brugman: "Re: row vs page locking..."
- Reply: ben brugman: "Re: row vs page locking..."
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 5 Sep 2004 10:24:17 -0500
There was a major rewrite of much of the core database engine code in SQL 7.
SQL 7 and above do a great job of row-level locking.
In versions prior to 7, one would sometimes implement convoluted techniques
to avoid 'hot spots' to circumvent page-level locking issues. Thanks to
row-level locking, hot spots are actually a good thing and can help
performance due to reduced i/o.
However, there is still no row versioning the current SQL Server version.
Snapshot isolation is planned for SQL Server 2005.
> And I've read that MSs row level locking is a band-aid on its unchanged
> core engine, although the author of that message did not expand further on
> this.
Perhaps the author is referring to version 6.5 insert row locking. This is
not true for versions 7 and above.
-- Hope this helps. Dan Guzman SQL Server MVP "Randall Sell" <randall@bytewise.nospam.com.au> wrote in message news:UnE_c.20421$D7.10166@news-server.bigpond.net.au... > Hello all, > > Somewhere on these newsgroups I recall reading that SQL Server 6 and prior > (when they were married with Sybase) used page locking and not row level > locking. Hence you could be locking a lot more records then what you think > when doing an UPDATE or INSERT SQL. > > Now I notice that SQL Server 7 and 2000 claim to use row level locking. > (As you can see, I have been out of the SQL arena for some time). So what > I'd like to know if this is all true? Or marketing mumbo-jumbo? Has > Microsoft made changes at the core of their engine to lock rows? I know > that other RDMSs like Interbase have a versioning engine so it was built > from the ground up for concurrence. And I've read that MSs row level > locking is a band-aid on its unchanged core engine, although the author of > that message did not expand further on this. > > so I figured I'd ask the experts what the truth is. Any help is much > appreciated. > > If indeed it has changed, what sort of test can I run to prove this to my > boss? > > regards, > -randall sell
- Next message: Kalen Delaney: "Re: row vs page locking..."
- Previous message: John: "Re: row vs page locking..."
- In reply to: Randall Sell: "row vs page locking..."
- Next in thread: ben brugman: "Re: row vs page locking..."
- Reply: ben brugman: "Re: row vs page locking..."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|