# Changed session store from ActiveRecord, deleted sessions table and now

**URL:** <https://www.ruby-forum.com/t/changed-session-store-from-activerecord-deleted-sessions-table-and-now/177697>\
**Category:** Rails\
**Created:** [October 22, 2009, 4:50am UTC](https://www.ruby-forum.com/t/changed-session-store-from-activerecord-deleted-sessions-table-and-now/177697 "2009-10-22T04:50:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ressister](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/258eb7/32.png) [@ressister](https://www.ruby-forum.com/u/ressister)\
**Post date:** [October 22, 2009, 4:50am UTC](https://www.ruby-forum.com/t/changed-session-store-from-activerecord-deleted-sessions-table-and-now/177697/1 "2009-10-22T04:50:56Z")

</div>

Is there any chance that changing the session store from ActiveRecord  
to cookies, and deleting the sessions table could cause performance  
problems with my app? Everything was running fine until I made that  
change (and added indexing to all my tables). Now the app jumps right  
into the swap and chows up all the memory rendering the server useless  
in a matter of hours.

I went through all my recent commits to see what the possible culprits  
might be and this was the only thing that raised a question. Thoughts?

---

<div class="post-metadata">

**Author:** ![ressister](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/258eb7/32.png) [@ressister](https://www.ruby-forum.com/u/ressister)\
**Post date:** [October 22, 2009, 7:23am UTC](https://www.ruby-forum.com/t/changed-session-store-from-activerecord-deleted-sessions-table-and-now/177697/2 "2009-10-22T07:23:43Z")

</div>

On Wed, Oct 21, 2009 at 7:49 PM, ressister [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Everything was running fine until I made that change

Yay!!

> (and added indexing to all my tables).

ruh-roh 🙂

> Now the app jumps right into the swap and chows up all the memory

> Thoughts?

Sure, make one major change at a time. 🙂

Failing that – did you have any kind of performance analysis going  
on before? NewRelic, etc.? Why did you “add indexing”? What are  
you doing now to determine where the bottleneck is?

–  
Hassan S. ------------------------ removed\_email\_address@domain.invalid  
twitter: @hassan
