Skip to content

Commit

Permalink
[3.1.x] Fixed #32388 -- Clarified QuerySet.bulk_update() caveat about…
Browse files Browse the repository at this point in the history
… duplicates for multiple batches.

Backport of 241da3f from master
  • Loading branch information
tim-mccurrach authored and felixxm committed Jan 28, 2021
1 parent fa203f1 commit b920945
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/ref/models/querysets.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2181,7 +2181,8 @@ them, but it has a few caveats:
``batch_size``.
* Updating fields defined on multi-table inheritance ancestors will incur an
extra query per ancestor.
* If ``objs`` contains duplicates, only the first one is updated.
* When an individual batch contains duplicates, only the first instance in that
batch will result in an update.

The ``batch_size`` parameter controls how many objects are saved in a single
query. The default is to update all objects in one batch, except for SQLite
Expand Down

0 comments on commit b920945

Please sign in to comment.