diff options
author | akihiro17 <coolwizard11@gmail.com> | 2015-10-05 02:49:57 +0900 |
---|---|---|
committer | akihiro17 <coolwizard11@gmail.com> | 2015-10-05 03:01:54 +0900 |
commit | dc96af159ddb220fe87825d8538d7c4e86da995b (patch) | |
tree | 316a19db924690a007d790653a33241a5d89c91e /activerecord/lib/active_record/associations/preloader | |
parent | df9faf53e9cfddd1be9a09811eed1192a3073afc (diff) | |
download | rails-dc96af159ddb220fe87825d8538d7c4e86da995b.tar.gz rails-dc96af159ddb220fe87825d8538d7c4e86da995b.tar.bz2 rails-dc96af159ddb220fe87825d8538d7c4e86da995b.zip |
[ci skip] Fix ActiveRecord::Relation#update documentation
* before
```
people = Person.where(group: 'expert')
people.update(group: 'masters')
Note: Updating a large number of records will run a
UPDATE query for each record, which may cause a performance
issue. So if it is not needed to run callbacks for each update, it is
preferred to use <tt>update_all</tt> for updating all records using
a single query.
```
* after
```
people = Person.where(group: 'expert')
people.update(group: 'masters')
```
Note: Updating a large number of records will run an
UPDATE query for each record, which may cause a performance
issue. So if it is not needed to run callbacks for each update, it is
preferred to use <tt>update_all</tt> for updating all records using
a single query.
Diffstat (limited to 'activerecord/lib/active_record/associations/preloader')
0 files changed, 0 insertions, 0 deletions