The Wire · Showcase
Rails Prunes Arel and Query Cache Deadweight
By RepoJournal · Filed · About Rails
Jean Boussier and Ary Rabelo are on a cleanup spree, removing dead code that would have crashed on contact.
Rails core is decluttering Active Record internals, with Jean Boussier merging a PR to eliminate `QueryCacheRegistry#clear` [1] and Ary Rabelo removing unreachable branches that would raise `NameError` [2]. The Arel fake record also loses its broken `columns_hash` method, which raised `ArgumentError` on any call [3]. For apps managing Vitess tables, a new config `config.active_record.schema_ignored_tables` [4] unifies schema dumping and caching, so you no longer need to set both `SchemaDumper.ignore_tables` and `schema_cache_ignored_tables` separately. Meanwhile, solid_cable gets a clearer naming scheme [5], and lemans adds retry support and Docker integration [6][7]. None of these are breaking, but they signal a tighter codebase for the upcoming Rails release.
One email a day. Unsubscribe in one click.
Keep up with Rails in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.
One email a day. Unsubscribe in one click. Read a past issue →
Action items
- → Review the new schema_ignored_tables config for production tables that should be excluded from both dump and cache rails/rails [plan]
- → Skip the Arel and QueryCache removals unless you rely on internal APIs rails/rails [monitor]
References
- [1] Merge pull request #58580 from byroot/remove-dead-clear rails/rails
- [2] Remove unreachable branch from HomogeneousIn#fetch_attribute rails/rails
- [3] Remove unused `columns_hash` from the Arel fake record rails/rails
- [4] Add config.active_record.schema_ignored_tables ↗ rails/rails
- [5] better naming rails/solid_cable
- [6] + lemans-remote: --retry-runs rails/lemans
- [7] + miniswen: --docker rails/lemans