rails--rails/guides
Nick Holden c773ae65af Add `active_record.destroy_association_async_batch_size` configuration
This allows applications to specify the maximum number of records that
will be destroyed in a single background job by the `dependent:
:destroy_async` association option. By default, the current behavior
will remain the same: when a parent record is destroyed, all dependent
records will be destroyed in a single background job. If the number of
dependent records is greater than this configuration, the records will
be destroyed in multiple background jobs.

At GitHub, we have a custom method for destroying associated records
in the background that we'd like to replace with
`dependent: :destroy_async`. Some associations have a large number of
dependent records, and our infrastructure requires that background jobs
complete quickly, so we limit the maximum number of dependent records
destroyed in a single background job and enqueue additional jobs when
the number of records exceeds that limit.
2022-03-09 11:13:16 -07:00
..
assets Update Rails startup screenshot at Rails Guide 2021-12-16 15:05:32 +09:00
bug_report_templates No need to check for Ruby version on the bug reports template anymore 2022-01-06 20:50:33 +00:00
rails_guides
source Add `active_record.destroy_association_async_batch_size` configuration 2022-03-09 11:13:16 -07:00
.document
CHANGELOG.md Start Rails 7.1 development 2021-12-07 15:52:30 +00:00
Rakefile Run the gem template guides for 3.1 now that 7.0.1 is out 2022-01-06 21:56:06 +00:00
rails_guides.rb
w3c_validator.rb