rails--rails/activerecord/test/active_record/connection_adapters
Jean Boussier 17acb771d8 Deduplicate various Active Record schema cache structures
Real world database schemas contain a lot of duplicated data.
Some column names like `id`, `created_at` etc can easily be repeated
hundreds of times. Same for SqlTypeMetada, most database will contain
only a limited number of possible combinations.

This result in a lot of wasted memory.

The idea here is to make these data sctructures immutable, use a registry
to substitute similar instances with pre-existing ones.
2019-06-03 13:31:42 +02:00
..
fake_adapter.rb Deduplicate various Active Record schema cache structures 2019-06-03 13:31:42 +02:00