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 Jennifer demonstrates how the Lock Transparent Pixels button can help...
  2. CSIRO Receives $185 Million for Wi-Fi Patent It's official: wi-fi is a patented technology. Several large companies...

This post has 8 responses so far

Sponsored Links

SitePoint Marketplace

Buy and sell Websites, templates, domain names, hosting, graphics and more.

Follow SitePoint on...