# Is AR thread safe or not?

**URL:** <https://www.ruby-forum.com/t/is-ar-thread-safe-or-not/90507>\
**Category:** Rails\
**Created:** [March 29, 2007, 12:06pm UTC](https://www.ruby-forum.com/t/is-ar-thread-safe-or-not/90507 "2007-03-29T12:06:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/3bc359/32.png) [@jon](https://www.ruby-forum.com/u/jon)\
**Post date:** [March 29, 2007, 12:06pm UTC](https://www.ruby-forum.com/t/is-ar-thread-safe-or-not/90507/1 "2007-03-29T12:06:54Z")

</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:** ![jon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/3bc359/32.png) [@jon](https://www.ruby-forum.com/u/jon)\
**Post date:** [March 29, 2007, 3:06pm UTC](https://www.ruby-forum.com/t/is-ar-thread-safe-or-not/90507/2 "2007-03-29T15:06:08Z")

</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.
