Recommended rails performance tuning

just tell me some recommended rails performance tuning if anyone knows

Shiva K. wrote:

just tell me some recommended rails performance tuning if anyone knows

You need to read about that :slight_smile:

You can try to search on google.com there is alot of tips on rails
perfermance :slight_smile:

On Sep 11, 2:55 am, Shiva K. [email protected]
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!

Shiva K. wrote:

just tell me some recommended rails performance tuning if anyone knows

Courtenay 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 A.

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”

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

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,

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 K. [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs