rails/rails — pull request #5162 by kennyj (2012-02-25 04:46:55+00:00)
Title: [Proposal] Schema cache dump

In my experience, if we had many models (ex. one hundred), Rails boot was slowly.
According to production log, it seems that AR's schema information loading is slowly especially.

Thus I've implemented `schema cache dumping`. Please review it.
I guess this implementation has many fixing point ;)

usage:
* edit config/environments/production.rb
config.use_schema_cache_dump = true
* RAILS_ENV=production bundle rake db:schema:cache:dump
=> generate db/schema_cache.dump
* RAILS_ENV=production rails s