Rails Daily: Default Ordering Fixes and Inheritance Propagation

Merged activity on November 1st to 2nd centered on making default ordering reliable across preloading, eager loading and caching, plus fixing parent class changes not reaching existing subclasses. The update also adds small performance wins and a security hardening for preload links.

Duration: PT2M10S

Episode overview

This episode is a short developer briefing from Rails Daily.

It explains recent repository work in plain language.

  • Show: Rails Daily
  • Published: 2026-11-02T06:02:19Z
  • Audio duration: PT2M10S

Transcript excerpt

This excerpt keeps the crawler page concise. Listen to the episode or use the RSS feed for the full update.

Hello and welcome to Rails Daily for Monday, November 2nd, 2026.

The lead story is default ordering finally behaving consistently. For years, explicit ordering and default ordering took different code paths, causing wrong results or database errors when loading associations.

First, loading with limits and ordering. Pull request 59496 fixed eager loading with a limit that crashed on Postgres and MySQL because the distinct ID query ignored default ordering. Related work in pull request 59497 and pull request 58667 fixed preloading of has-many and has-many-through associations ignoring…

Second, inheritance propagation. Several fixes address the same root issue: a subclass copies parent configuration at creation, then misses later changes. That affected read-only declarations, attribute aliases, value object aggregations, and enum definitions. Pull request 59502 for enums and pull request 59491 for…

Third, performance and hardening. Relation sum with a block avoids an intermediate array, query cache misses hash once less, and missed method checks skip pattern matching unless the name starts with find by. On security, pull request 59511 percent-encodes preload link headers to prevent…

What'…

Nearby episodes from Rails Daily

  1. Performance Trims and Compatibility Fixes
  2. Security Hardening and Relation Fixes
  3. The Allocation Diet Sweep
  4. Weekly Recap - Default Order Fixes, Inheritance Propagation and Performance
  5. Routing Speed and Preload Correctness
  6. Preloading Fixes and Performance Push
  7. Speed Wins and Query Correctness Fixes
  8. Performance Blitz and Boot Cache Cleanup