I’m working on my first little rails-application. It’s a rewrite of a
gallery-script i once made (in PHP): http://notdotnet.net
However - my rails-version is waaay to slow
I don’t do any heavy image-processing, I don’t have any
killer-algorithms with a time complexity on O(n^n), and I don’t use any
The only “stupid” thing i really do is an “ORDER BY RAND()” on a table
with 8000 rows, which is quite heavy, but it shouldn’t take that long,
and i do the same in PHP which works fine.
I then signed up for a new (free) webhost and installed my application
there to see if my host was the problem. It performs a bit better on the
free one, but is still really slow
Since it don’t mind sharing the source code (nothing brilliant - just a
noobs first project =) you can get it here (no db-config file)):
http://94383.hostmyapplications.com/rails_slow.tar.gz (and if you like -
the database: http://94383.hostmyapplications.com/mysql.zip).
Do you have any idea why i get such bad performance?
thanks in advance.