dbTalk Databases Forums  

sybase row level locking vs page locking

comp.databases.sybase comp.databases.sybase


Discuss sybase row level locking vs page locking in the comp.databases.sybase forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Maria
 
Posts: n/a

Default sybase row level locking vs page locking - 07-16-2004 , 10:48 PM






Can someone please help with the following:
What is row level locking -

all pages
data pages
data rows


Does row level locking = data rows?
and page level locking = all pages?

I'm getting confused, can someone please help, this is for sybase 12.0
Thank you

Reply With Quote
  #2  
Old   
Mark A. Parsons
 
Posts: n/a

Default Re: sybase row level locking vs page locking - 07-17-2004 , 12:23 PM






Maria wrote:
Quote:
Can someone please help with the following:
What is row level locking -

all pages
data pages
data rows

Does row level locking = data rows?
and page level locking = all pages?

I'm getting confused, can someone please help, this is for sybase 12.0
Thank you
row level == data rows
page level == data pages
page level == data pages (and index pages)

--
Mark A. Parsons

Iron Horse, Inc.
iron_horse (AT) NOSPAM (DOT) compuserve.com


Reply With Quote
  #3  
Old   
Rob Verschoor
 
Posts: n/a

Default Re: sybase row level locking vs page locking - 07-25-2004 , 06:54 AM



"Maria" <evoradba (AT) yahoo (DOT) ca> wrote

Quote:
Can someone please help with the following:
What is row level locking -

all pages
data pages
data rows


Does row level locking = data rows?
and page level locking = all pages?

I'm getting confused, can someone please help, this is for sybase 12.0
Thank you
You're correct, page level locking locks pages, not rows. There's a
difference between allpages locking (the classic Sybase lock scheme) and
data pages locking (new since 11.9): allpages locks all data pages and all
index pages that are modified in a transaction; data pages locks only the
data pages -- modified index pages are not locked for the duration of the
transaction, but 'locked' internally in a different way that lasts only a
very short time. To the user, this has the effect that data pages locking
locks only data pages and no index pages -- hence the name 'data pages'
locking. Note that there is no functional difference between allpages and
datapages locking as far as transactional consistency is concerned; data
pages locking just provides better concurrency.

HTH,

Rob
-------------------------------------------------------------
Rob Verschoor

Certified Sybase Professional DBA for ASE 12.5/12.0/11.5/11.0
and Replication Server 12.5

Author of various Sybase books. New book (coming soon): "The
Complete Sybase Replication Server Quick Reference Guide"
Online orders accepted at http://www.sypron.nl/shop

mailto:rob (AT) YOUR (DOT) SPAM.sypron.nl.NOT.FOR.ME
http://www.sypron.nl
Sypron B.V., P.O.Box 10695, 2501HR Den Haag, The Netherlands
-------------------------------------------------------------




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.