Blog Post RSS ?

Blogs » Ruby on Rails » ActiveRecord receives pessimistic locking
 

ActiveRecord receives pessimistic locking

by Tim Lucas

Jeremy Kemper just added pessimistic locking to ActiveRecord:


Person.transaction do 
  person = Person.find(1, :lock => true) 
  person.visits += 1 
  person.save! 
end 
Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Ping.fm
  • Twitthis

Related posts:

  1. Photoshop Tip: Locking Transparent Pixels
  2. Being a good little 404er
  3. CSIRO Receives $185 Million for Wi-Fi Patent
  4. The relief of selling products instead of services
  5. JSFL Quickies III :Selective Layer Lock

This post has 8 responses so far

Sponsored Links