Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Deduplicate various Active Record schema cache structures | Jean Boussier | 2019-06-03 | 1 | -0/+29 |
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. |