Frederick Cheung wrote:
> On Sep 21, 3:57�pm, Marnen Laibow-Koser <rails-mailing-l...@andreas-
> s.net> wrote:
>> > � key.save
>> to PostgreSQL.
>>
>>
> would have thought that Active Record's optimistic locking would do
> the job - if upon saving you get a StaleObjectError you know that you
> need to try again.

Perhaps it would; I've never used ActiveRecord locking at all, so I'll 
defer to you here.  However, I tend to think that locking should 
generally be implemented at the database level, not the application 
level, which is why I suggested pessimistic here.  Am I missing 
something?

> 
> Fred

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to