summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorTimothy McCurrach <tim.mccurrach@gmail.com>2021-01-27 11:25:31 +0000
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-01-28 08:07:14 +0100
commite95a60bb64b2c78f025a44972e7d646fa8c85b2b (patch)
treed84f84d3144951523398f9b74df766061482e52c /docs/ref
parentba71cf38ea82e8d81f6e1086d102294e0e5cc7e9 (diff)
[3.2.x] Fixed #32388 -- Clarified QuerySet.bulk_update() caveat about duplicates for multiple batches.
Backport of 241da3f06ee0c6f436341cda5890b221ac453e3b from master
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/models/querysets.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt
index 656bf537ad..46766da388 100644
--- a/docs/ref/models/querysets.txt
+++ b/docs/ref/models/querysets.txt
@@ -2249,7 +2249,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