Join GitHub today
[Proposal] Schema cache dump #5162
In my experience, if we had many models (ex. one hundred), Rails boot was slowly.
Thus I've implemented
I like this idea, but can we change a few things?
First, can we just implement
schema_cache.connection.tables.each do |table| schema_cache.populate(table) end
Maybe not a
I have another idea that is related to this: can we enable schema caching by default? We can use the migration version to determine if the cache should be expired. Maybe add a
Anyway, I really like this feature.
A hash with default_proc can't be dumped.
Sorry for keeping you waiting for this reply.
I tested about this performance.
In my experience on Oracle, the queries to data dictionary were very slow when having many data.
I'll try to research a little more.