# ActiveRecord Session Store

**URL:** <https://www.ruby-forum.com/t/activerecord-session-store/143227>\
**Category:** Rails\
**Created:** [July 16, 2008, 3:53pm UTC](https://www.ruby-forum.com/t/activerecord-session-store/143227 "2008-07-16T15:53:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/59ef9b/32.png) [@johnk](https://www.ruby-forum.com/u/johnk)\
**Post date:** [July 16, 2008, 3:53pm UTC](https://www.ruby-forum.com/t/activerecord-session-store/143227/1 "2008-07-16T15:53:35Z")

</div>

I just recently moved from Cookie session store to ActiveRecord session  
store and I saaw my average page response time go from 300-500ms go to  
800-1100ms. Would ActiveRecord session store be the cause of such a  
difference? I figured I would maybe take a 40-50ms hit at the most.  
Does  
that make sense?

–  
John K.  
removed\_email\_address@domain.invalid

Blog: [http://www.kopanas.com](http://www.kopanas.com)  
Conference: [http://www.cusec.net](http://www.cusec.net)  
Twits: [http://www.twitter.com/kopanas](http://www.twitter.com/kopanas)

---

<div class="post-metadata">

**Author:** ![johnk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/59ef9b/32.png) [@johnk](https://www.ruby-forum.com/u/johnk)\
**Post date:** [July 17, 2008, 4:18pm UTC](https://www.ruby-forum.com/t/activerecord-session-store/143227/2 "2008-07-17T16:18:58Z")

</div>

John K. wrote:

> I just recently moved from Cookie session store to ActiveRecord session  
> store and I saaw my average page response time go from 300-500ms go to  
> 800-1100ms. Would ActiveRecord session store be the cause of such a  
> difference? I figured I would maybe take a 40-50ms hit at the most.  
> Does that make sense?

I’m with you on the performance thing. The AR store should be slower but  
not by that much. How many sessions are in the table? Are the indices  
correct? Which database management system are you using and which Ruby  
driver?

–  
Roderick van Domburg

> **[De domeinnaam Nedforce.nl is te koop.](http://www.nedforce.nl)**
>
> Deze mooie domeinnaam kan al over een paar minuten van jou zijn. Betalen gaat eenvoudig en vertrouwd via iDEAL. Direct na de betaling ontvang je de verhuiscode per e-mail en kun je aan de slag.
