I am looking to speed up my rails application and am working through all
the SQL queries and trying to remove unnecessary queries.
I thought of the following and would love to hear whether it is
I have one (smallish - about 40 records) table which only gets read by
my app - no writing. It gets read a lot though. Would it be possible to
preload this table into memory (as a kind of global global dataset) when
the server starts up? This would save me at least one sql query on every
Is this even necessary? Maybe rails - (or the database?) automatically
caches things like this?
Your thoughts and suggestions are most welcome.