Ruby on Rails: Query Optimization and String Performance Updates
Rails merged two ActiveRecord performance improvements focusing on query optimization - one allowing aliases for unions in from clauses, another optimizing the extending method. Additionally, frozen string literals are now enabled by default for new applications.
Duration: PT1M37S
Episode overview
This episode is a short developer briefing from Ruby on Rails.
It explains recent repository work in plain language.
- Show: Ruby on Rails
- Published: 2026-04-26T00:00:00Z
- Audio duration: PT1M37S
Transcript excerpt
This excerpt keeps the crawler page concise. Listen to the episode or use the RSS feed for the full update.
Good morning, this is your Rails development briefing for April 26th, 2026.
Two merged pull requests landed today focused on ActiveRecord performance improvements. Fatkodima merged support for aliases in union queries within the from clause, fixing a PostgreSQL error where table aliases were silently ignored when using unions. The fix required minimal changes - just 5 lines modified in…
Bogdan merged an optimization for ActiveRecord's extending method, adding an early return when called with empty modules. This follows up on previous work by moving the performance guard directly into the extending method itself, benefiting all callers rather than just the merge code path.
In additional commits, Jean Boussier enabled frozen string literals by default for new Rails applications. This change affects only application code, not dependencies, and includes bootsnap configuration updates and rubocop settings. The change aims to improve memory usage and performance while maintaining…
Finally, Nate Berkopec cleaned up the AGENTS.md file by removing an unnecessary pull request reference from the contribution guidelines.
What's next: These query optimizations should improve performance for…
Nearby episodes from Ruby on Rails
- View Performance and Test Compatibility Updates
- ActiveRecord becomes Method Enhancement
- Frozen Strings and Routing Fixes
- Weekly Recap - Performance & Bug Fixes
- Bug Fixes and Performance Improvements
- Docker Image Optimization
- PostgreSQL Upgrade and Documentation Updates
- Weekly Recap - Security & Developer Experience