Experimental Patterns in ActiveRecord
summary
GitHub describes concrete experiments: tackling N+1s with Prelude batch methods on models (inspired by graphql‑batch), using it to remove many includes and handle non‑DB calls, and reporting it largely works though overfetching remains. The codebase scale — ~400 models and 17 DB clusters — motivates work on ownership: a proxy‑record pattern and a light record shim with private data API that hide AR internals; prototypes exist but require more polish.
AI-written summary · about
chapters (6)
- 0:00Start
- 13:56shopify/graphql-batch
- 18:45Code ownership & responsibility
- 20:47API exposure
- 23:20Renaming an issue
- 30:52Recap








