We sorted it out this arvo, it turns out the memcache client that is
vendored with ActiveSupport (1.6.5) is like, way slower, than the one
we were using (fiveruns-memcache-client 1.5.0.5).

We reverted to the version we were using and stopped swearing and
cussing.

On Apr 9, 11:46 am, John Barton <[email protected]> wrote:
> Hey guys, this is just a quick cross post from ruby on rails: talk
> (http://groups.google.com.au/group/rubyonrails-talk/browse_thread/
> thread/2d04edb8cd318634)
>
> Has anyone else suffered memcache perf. depredation going from rails
> 2.1 to 2.3?
>
> After much effort I upgraded our fairly large Rails app from 2.1 to
> 2.3.  After deployment yesterday I noticed an across the board
> increase in response times.  It seems that every call to memcache now
> takes 10x longer than before.  Here are some example numbers from my
> development log (below), with memcache running locally.  We see
> similar scale of performance drop in production as well -  average
> memcache call before 2ms, now 20ms.  It adds up to a significant hit.
>
> Before Rails 2.3 upgrade:
>
> Cached fragment hit: views/homepage_recent_blog_posts (0.00043)
> Cached fragment hit: views/homepage_active_threads (0.00033)
> Cached fragment hit: views/homepage_weekly_feature (0.00029)
> Cached fragment hit: views/homepage_recent_approved_items (0.00036)
> Cached fragment hit: views/homepage_popular_items (0.00037)
> Cached fragment hit: views/number_of_members (0.00032)
>
> After Rails 2.3 upgrade:
>
> Cached fragment hit: views/homepage_recent_blog_posts (3.2ms)
> Cached fragment hit: views/homepage_active_threads (3.5ms)
> Cached fragment hit: views/homepage_weekly_feature (2.9ms)
> Cached fragment hit: views/homepage_recent_approved_items (2.8ms)
> Cached fragment hit: views/homepage_popular_items (3.1ms)
> Cached fragment hit: views/number_of_members (6.7ms)
>
> Before I start delving into the memcache internals in Rails 2.3, has
> anyone else experienced this degradation on their apps?  Is there a
> magic 'make it fast again' switch that I can flick?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to