Wednesday, December 16, 2009

[Rails] Re: Approaches to improve response times for web pages who's HTML & content is loaded through Rails???

Are you re-checking authentication for each image? Could you find some
way to authenticate only once for all of your resources? Perhaps use
Basic or Digest authentication for your images, and then somehow tie
the password to the current session? If you can remove unnecessary
database hits, you may be able to shave off some ms. You may add a few
ms for HTTP authentication, though, so I'd take a close look.

Are you using a mongrel cluster? If this is all going through one
mongrel instance, it's only handling one request at a time. Switching
to passenger may help, as it can spawn new instances to handle
simultaneous requests (depending on settings and your server's
memory).

On Dec 16, 8:02 am, Hassan Schroeder <hassan.schroe...@gmail.com>
wrote:
> On Tue, Dec 15, 2009 at 11:13 PM, greghauptmann
>
> <greg.hauptm...@gmail.com> wrote:
> > PS.  On average each request is about 3000ms to 5000ms when being
> > served by RoR (authlogic/paperclip), as opposed to about 160ms for the
> > same content but put directly under /public.  I'm using mongrel.
>
> You can get a lot more specifics about what's happening time-wise
> by installing the NewRelic monitoring plugin (http://newrelic.com/).
>
> Highly recommended.
>
> --
> Hassan Schroeder ------------------------ hassan.schroe...@gmail.com
> twitter: @hassan

--

You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate