heri rakotomalala
2006-Jul-28 00:05 UTC
[Rails] long waiting time for first page due to session[:user]
hi everyone i am developing http://sprinj.com it uses a login system, quite simple, really, similar to loginEngine the problem is that takes way too much time to access the first page. when i desactive the login system, there is very noticeable difference (about 2 to 3 seconds), and people who visited the website complained about this. is there something i can do to speed the sessions checkups ? sessions are stored in tmp/sessions [someone hinted me at memcached store but i have not been able to make it run on my server, and i am not sure if it will speed things up too.] thanks everyone for the help -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060728/59aa46a9/attachment.html
snacktime
2006-Jul-28 18:06 UTC
[Rails] long waiting time for first page due to session[:user]
On 7/27/06, heri rakotomalala <heri.yamiyama@gmail.com> wrote:> hi everyone > i am developing http://sprinj.com > it uses a login system, quite simple, really, similar to loginEngine > > the problem is that takes way too much time to access the first page. when i > desactive the login system, there is very noticeable difference (about 2 to > 3 seconds), and people who visited the website complained about this. > > is there something i can do to speed the sessions checkups ? > > sessions are stored in tmp/sessions [someone hinted me at memcached store > but i have not been able to make it run on my server, and i am not sure if > it will speed things up too.] >Sessions are retrieved on every request, not just when you actually use a session variable. So the delay is probably in your login code and doesn''t have anything to do with sessions.