My web app is gettin开发者_如何学Pythong slower mainly due to Session objects access. I'm using the standard ActiveRecord storage in Rails 2.3.5. Could anyone give me some advice to make this faster?
You need to delete old sessions after a reasonable expiration time. Here's a task you can run via cron to do so. Note that it deletes sessions after an hour, customize to your liking.
精彩评论