If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > Locking granularity.. help please!

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-22-10, 13:30
fadax fadax is offline
Registered User
 
Join Date: Apr 2010
Posts: 1
Locking granularity.. help please!

Hi there,
could someone help me with a question on locking granularity please? I am revising for an exam on database design and concurrency and am trying to answer this question: http://i43.tinypic.com/mjtnox.png
I know that the end answer will be that table level locking granularity is required instead of tuple level granularity.. but I just can't think of an example of where the tuple level granularity won't guarantee serialisability.
thanks for any help!

Last edited by fadax; 04-22-10 at 13:34.
Reply With Quote
  #2 (permalink)  
Old 04-22-10, 16:47
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
For example, tuple-level locks won't prevent another transaction from inserting a new Accounts tuple while the first transaction computes a total for that branch.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On