deepak
2010-Jun-26 13:23 UTC
disabling ''show status'' in activerecord because of overhead of spawning process
hi, i have a app which has a spiky activity, there a large period of inactivity between request. With phusion-passenger after a period of inactivity the process is killed, and when the app is respawned the ''show status'' queries take more time than the actual sql themself. I know that ActiveRecord makes the ''show status'' query once on spawning the server, but is there some way of disabling ''show status'' in activerecord, because of overhead of spawning process. Alternatively, can i cache only the ''show status'' queries in memcache/ redis thanks, deepak -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
deepak
2010-Jul-12 09:09 UTC
Re: disabling ''show status'' in activerecord because of overhead of spawning process
hi, any suggestions, the show status queries are very redundant and makes the startup slow. Can i memonize it? cheers, deepak -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Apparently Analagous Threads
- [PATCH] Document the method for building the Unicorn gem
- Announcing release for Phusion Passenger 4.0 on CentOS Linux 7 x86_64 SCL
- Announcing release for Phusion Passenger 4.0 on CentOS Linux 6 x86_64 SCL
- AJAX truncated response on Phusion Passenger v3.0.17 on CentOS v6.x
- Rmpi 0.5-6 : error spawning process