Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

lock/unlock question

 
Kruger Scheitz
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it says: -
Note that the locking required is effectively a "write" lock only. If updates occur to a record that is being displayed on another client, then no change occurs at the other client.
-- what do u mean locking required is a 'write' lock only?
-- and i don't understand this phrase
If updates occur to a record that is being displayed on another client, then no change occurs at the other client.
can anyone pls explain to me?
 
Nate Johnson
Ranch Hand
Posts: 301
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by yalena:

-- what do u mean locking required is a 'write' lock only?
-- and i don't understand this phrase
If updates occur to a record that is being displayed on another client, then no change occurs at the other client.
can anyone pls explain to me?

1) You dont have to lock when you are reading the database, just updating it.
2) You dont have to worry about updating the client views of all the other clients when one client books a seat... just be sure to recheck that the data is not stale before booking a flight
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"yalena"-
Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy.
You can change it
here.
Thanks! and welcome to the JavaRanch!
Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic