Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4063900
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T15:47:10+00:00 2026-05-20T15:47:10+00:00

How big is the performance penalty switching from the cookieStore to the ActiveRecord SessionStore?

  • 0

How big is the performance penalty switching from the cookieStore to the ActiveRecord SessionStore?

By default Ruby on Rails uses the CookieStore. But it has the disadvantage that the client needs to have its cookies enabled.

Switching to the Active SessionStore seems to solve that problem. I’m considering switching.

I read that performance is worse using the ActiveRecord SessionStore. But what is worse? Will a user notice this, or is it a matter of milliseconds? Anybody has seen benchmark results comparing the 2 options?

Any other reasons (not) to switch to the ActiveRecord SessionStore?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T15:47:10+00:00Added an answer on May 20, 2026 at 3:47 pm

    What is worse is that it needs to query a database, which then needs to calculate the answer, rather than going straight to the cookie on the client side.

    However is it really that bad? You are correct in that the performance difference is very minuscule in most cases.

    Pros:

    Affinity-
    If your web application ever expands to more than one server, moving your sessions to a database can allow you to run your servers without server affinity.

    Security
    – Since you only store the session ID on the client side, this reduces the chances of the user manipulating any data via the client side.

    Cons

    Performance – Instead of querying the database, you can just read the session/cookie data from the client side.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How big is a performance penalty when calling functions from DLL? Loading DLL is
From forum discussion , seem like that the big difference is performance factor, allocWithZone:
I have a big jQuery code and I am thinking at speed performance of
I want to start working on a big project. I research about performance issues
Shark complains about a big performance hit with this line, which takes like 80%
I'm having a big performance issue on my tableviewcontroller. The scroll is very slow.
I've noticed that I take a pretty big performance hit when I have an
With SMO, I meet a big performance problem : I script all Database object
I am encountering a big performance problem when building lately, and I suspect that
Is there a big performance difference between: Process A writing to a temp file,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.