Skip to content

Commit 4f33e65

Browse files
authored
Merge pull request rails#49071 from HParker/backfill-relation-batching-changelog
Add changelog entry for batching using loaded relations
2 parents 2bc9e8c + 451053e commit 4f33e65

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

activerecord/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
* Allow batching methods to use already loaded relation if available
2+
3+
Calling batch methods on already loaded relations will use the records previously loaded instead of retrieving
4+
them from the database again.
5+
6+
*Adam Hess*
7+
18
* Deprecate `read_attribute(:id)` returning the primary key if the primary key is not `:id`.
29

310
Starting in Rails 7.2, `read_attribute(:id)` will return the value of the id column, regardless of the model's

0 commit comments

Comments
 (0)