Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

carine todmia
carine todmia
6,071 Points

ruby on rails is slow...or is it just me

i have made ruby on rails apps in the past but what turned me off is the applications were extremely slow when you first load them. i uploaded my app on heroku and i was wondering if this is only because i was using a free version of heroku?

1 Answer

Maciej Czuchnowski
Maciej Czuchnowski
36,441 Points

In Heroku free plan you get poor resources for your apps (memory and CPU) and your apps go to "sleep" mode when they are inactive for some time (not sure how long, an hour perhaps). You can see the app is sleeping in your heroku dashboard. Waking it up (i.e. visiting it when it's sleeping) takes longer than a normal visit, but after that the app works well (considering the specs of the free server you get) until it gets back to sleep. There are also other considerations like using the newest version of Ruby, using Puma instead of WEBrick, doing other performance optimizations.

Anyways, the non-free plans are faster - better resources and they don't switch apps to sleep mode.

carine todmia
carine todmia
6,071 Points

ok thats reassuring....i almost gave up on it because i thought no matter what i built it would be slow and worthless...thanks