Rails Daily

Rails Daily: Query Fixes and Documentation Overhaul

Eleven pull requests merged yesterday addressing Active Record query handling, bulk operations, and a major documentation refresh. Key fixes include query method improvements and connection pool maintenance.

Duration: PT2M8S

https://podlog.io/listen/rails-daily-a67c65cf/episode/rails-daily-query-fixes-and-documentation-overhaul-12ada941

Transcript

Good morning, I'm your host with Rails Daily for May 18th, 2026.

Yesterday saw significant activity with eleven merged pull requests spanning multiple Rails components.

Fatkodima merged several improvements to Active Record operations. The bulk job and email enqueueing methods received fixes for handling methods with no arguments, moving code organization without functional changes. A separate PR exposed all BatchEnumerator attributes including cursor, order, and use_ranges, giving developers better access to batch processing internals.

Tejanium fixed a critical issue in ActiveRecord QueryMethods where in_order_of threw RangeError exceptions when passed out-of-range integers. The fix now handles these cases gracefully rather than crashing.

Ridhwana completed a major overhaul of the Active Record Query Interface documentation, adding over 2,200 lines of improved content with better examples and clearer explanations of query methods and relationships.

Sandip-mane added a byte_size method to Active Storage's has_many_attached feature, allowing developers to get the combined file size of all attached blobs with a simple method call.

Several smaller but important fixes landed as well. Tahsin352 fixed pre-serialized string values skipping cast operations in insert_all hot paths. A contributor identified as 55728 resolved an issue where number_to_phone was incorrectly handling multi-character delimiters.

Jean Boussier reverted a previous change that sorted schema cache columns, citing concerns about altering query behavior for operations like pluck with asterisk. The team also removed support for Rails 6.1 Active Record Marshal format as part of ongoing modernization efforts.

Curi fixed false positive connection leak reports that occurred during database connection pool reaper maintenance.

Looking ahead, we're seeing continued focus on query performance optimization and documentation improvements. The team appears to be preparing for more significant internal API changes with the Marshal format deprecation.

That's your Rails update for today. I'm back tomorrow with more Rails Daily.