just tell me some recommended rails performance tuning if anyone knows -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Shiva Kumaran wrote:> just tell me some recommended rails performance tuning if anyone knowsYou need to read about that :) You can try to search on google.com there is alot of tips on rails perfermance :) -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Sep 11, 2:55 am, Shiva Kumaran <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> just tell me some recommended rails performance tuning if anyone knows > -- > Posted viahttp://www.ruby-forum.com/.here are terms to google for: caching query analysis profiling logfile analysis website statistics database indexes javascript/CSS file compression "rails go vroom" Good luck! --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi shiva, this is what i did, which i feel might help you, 1. First i installed ruby-prof(very good tool) gem, and i profiled my requests. i found that my static database table queries are consuming 20%-30% of my response time. so planning to use acts_as_cached (which while spiking showed 18-20% boost) 2. And i am using gettext for internationalization which was consuming around 20% of response time, as i thought, this was unnecessary for default(English) language. So, i wrote a wrapper for gettext, which straight away gave 20% boost. 3. And just did some code cleanup.(refactoring). 4. And find tuned query to for faster response time. 5. And implemented file level caching logic for tables, which are very huge(partitioned table).(this gave 21%-25%) As gene said planning to implement javascript/stylesheet/image compression/caching, and mongrel_rails with apache will be better approach for production deployment. and i am still in rails 1.1.6, so upgrading to rails 1.2.3 is on the way.(don''t know this may give some boost, may be) one more thing is if you are using oracle, you can cursor_sharing, prefetch_limit values in database.yml file to ''similar'' and 500(suitable for me). and One more thing is Do some google on GC(Garbage Collector) of ruby, which you can fine tune according to your application, surely the above approach will give some boost. Note: all these results are with respect to 10 users accessing my application concurrently. Good Luck, On Sep 11, 7:23 pm, gene tani <gene.t...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Sep 11, 2:55 am, Shiva Kumaran <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > wrote: > > > just tell me some recommended rails performance tuning if anyone knows > > -- > > Posted viahttp://www.ruby-forum.com/. > > here are terms to google for: > > caching > query analysis > profiling > logfile analysis > website statistics > database indexes > javascript/CSS file compression > "rails go vroom" > > Good luck!--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Shiva Kumaran wrote:> just tell me some recommended rails performance tuning if anyone knowsCourtenay of Caboo.se fame did an article on a somewhat overlapping topic which contains a few pointers on tuning also: http://www.caboo.se/articles/2007/7/29/scale-rails-from-one-box-to-three-four-and-five -- Cheers, - Jacob Atzen --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Instead of google, try searching del.icio.us as well. It has tons of good stuff. caching query analysis profiling logfile analysis website statistics database indexes javascript/CSS file compression "rails go vroom" --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi raghu, Thanks for your information.I have installed ruby-prof gem,but i dont know where to use that one and how to see the result...if you have any example send me..thanks once again -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi shiva, i guess this will help for sure, http://cfis.savagexi.com/articles/2007/07/10/how-to-profile-your-rails-application On Sep 12, 11:24 am, Shiva Kumaran <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Hi raghu, > > Thanks for your information.I have installed ruby-prof gem,but i dont > know where to use that one and how to see the result...if you have any > example send me..thanks once again > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---