diff options
author | Xavier Noria <fxn@hashref.com> | 2016-07-13 18:21:41 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2016-07-13 18:23:13 +0200 |
commit | 451437c6f57e66cc7586ec966e530493927098c7 (patch) | |
tree | 9ad651379547698481de0980d75e0e874e3686fc /activerecord/CHANGELOG.md | |
parent | 3b55ac22c920c366080fe3b56c9c3a3728f69f57 (diff) | |
download | rails-451437c6f57e66cc7586ec966e530493927098c7.tar.gz rails-451437c6f57e66cc7586ec966e530493927098c7.tar.bz2 rails-451437c6f57e66cc7586ec966e530493927098c7.zip |
adds support for limits in batch processing
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r-- | activerecord/CHANGELOG.md | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index c91e6662c9..86d07580e8 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,3 +1,18 @@ +* The flag `error_on_ignored_order_or_limit` has been deprecated in favor of + the current `error_on_ignored_order`. + + *Xavier Noria* + +* Batch processing methods support `limit`: + + Post.limit(10_000).find_each do |post| + # ... + end + + It also works in `find_in_batches` and `in_batches`. + + *Xavier Noria* + * Using `group` with an attribute that has a custom type will properly cast the hash keys after calling a calculation method like `count`. Fixes #25595. |