On Tuesday, June 3, 2014 5:32:57 AM UTC+1, Alexey Chernenkov wrote:
> My question is about AR transactions feature. Is it thread safe?
> Is it safe to use both `ActiveRecord::Base.transaction do ...` and 
> `Account.transaction do ...` statements?
> 
> 

It should be - a connection is only ever used by 1 thread at a time (and unless 
you have configured Account to use a separate connection then AR won't be 
default create nested transactions/save points )If you could show in more 
detail what you are doing then a more considered reply might be possible.

Fred

> I plan to use Puma as web server, and Sidekiq for background processing.
> Is there some tricks I should know about?
> 
> 
> Thanks!

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/e02b34d3-2fcf-4e12-9784-01e2647f5453%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to