# Is AR thread safe or not?

**URL:** <https://discuss.rubyonrails.org/t/is-ar-thread-safe-or-not/10961>\
**Category:** rubyonrails-talk\
**Created:** [March 29, 2007, 10:06am UTC](https://discuss.rubyonrails.org/t/is-ar-thread-safe-or-not/10961 "2007-03-29T10:06:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jon1](https://sea2.discourse-cdn.com/rubyonrails/user_avatar/discuss.rubyonrails.org/jon1/32/12222_2.png) [@Jon1](https://discuss.rubyonrails.org/u/Jon1)\
**Post date:** [March 29, 2007, 10:06am UTC](https://discuss.rubyonrails.org/t/is-ar-thread-safe-or-not/10961/1 "2007-03-29T10:06:01Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![bphogan](https://sea2.discourse-cdn.com/rubyonrails/user_avatar/discuss.rubyonrails.org/bphogan/32/4186_2.png) [@bphogan](https://discuss.rubyonrails.org/u/bphogan)\
**Post date:** [March 29, 2007, 1:05pm UTC](https://discuss.rubyonrails.org/t/is-ar-thread-safe-or-not/10961/2 "2007-03-29T13:05:22Z")

</div>

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.
