Skip to content

Commit 6e33a36

Browse files
authored
Merge pull request rails#42668 from abhaynikam/fix-active-record-changelog-1
Fixes changelog entry after addition of rails#41722
2 parents ce7ff88 + 5cf6898 commit 6e33a36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

activerecord/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
*Dirkjan Bussink*
44

5-
* Prevent double saves in autosave of cyclic associations
5+
* Relation#destroy_all perform its work in batches
66

77
Since destroy_all actually loads the entire relation and then iteratively destroys the records one by one,
88
you can blow your memory gasket very easily. So let's do the right thing by default
99
and do this work in batches of 100 by default and allow you to specify
1010
the batch size like so: #destroy_all(batch_size: 100).
1111

1212
Apps upgrading to 7.0 will get a deprecation warning. As of Rails 7.1, destroy_all will no longer
13-
return the collection of objects that were destroyed.
13+
return the collection of records that were destroyed.
1414

1515
To transition to the new behaviour set the following in an initializer:
1616

0 commit comments

Comments
 (0)