Is AR thread safe or not?


#1

I’ve seen a variety of claims that ActiveRecord isn’t thread safe, but
no actual evidence.

Has anyone actually experienced threading problems in ActiveRecord in
the current Rails release?

Jon


#2

As far as I know, ActiveRecord is thread safe.The controller stuff in
Rails
is not thread-safe. (so Rails request/response stuff is not thread-safe,
but
if you were to use ActiveRecord in a regular Ruby app or script then
youi
should be just fine.

Hope that helps clear things up.