Forum: Ruby on Rails db access or @session?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Bogdan I. (Guest)
on 2006-01-21 13: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
visitor
would access hundreds of times daily.

Thanks,
Bogdan
Pat M. (Guest)
on 2006-01-21 14: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.