Camille
Camille

Reputation: 699

How to optimize a Rails application on the Heroku Cedar stack?

Which gem do you install or which configuration do you change to optimize your Ruby on Rails applications on the Cedar stack of Heroku?

Like adding Rack::Deflater...

Upvotes: 0

Views: 759

Answers (2)

Neil Middleton
Neil Middleton

Reputation: 22240

To be honest, there's nothing specific to optimising Rails for Heroku that isn't part of regular optimising for Rails on it's own.

A fair amount of general best practise can be found here: http://railslab.newrelic.com/

The only thing worth mentioning specifically for Heroku is regarding dyno blocking uploads.

Upvotes: 0

You knows who
You knows who

Reputation: 895

There is no specific optimization applied for Cedar stack currently, but there are many way you can optimize your Rails app, including:

  • Optimizing the client's side of your app, e.g.: techniques like CSS sprite, reduce number of files loading, compress your html code etc. You can benchmark use tool like Page Speed

  • Optimizing your app using caching: there are many database queries that you will need to cache to make it most efficient and fastest. You can cache Views and different other things also, you can find more on Rails Caching

  • Optimizing database: there will be table that you have not add correct indexing etc... so be sure that the query is optimized (especially those join queries), and there is suitable indexing

Upvotes: 1

Related Questions