Forum: Ruby on Rails db access or @session?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
531eb73f8fbf05a197721d02b4e6aadb?d=identicon&s=25 Bogdan Ionescu (Guest)
on 2006-01-21 12:15
(Received via mailing list)
Does it make sense to use the @session to store some values instead of
accessing the db on each request?
I am trying to optimize the most accessed area, a page that every
would access hundreds of times daily.

42172acdf3c6046f84d644cb0b94642c?d=identicon&s=25 Pat Maddox (pergesu)
on 2006-01-21 13:00
(Received via mailing list)
You should look into caching to enhance performance, rather than
storing everything in the session.
This topic is locked and can not be replied to.