mirror of
https://github.com/django/django.git
synced 2025-11-02 21:03:53 +00:00
Fixed #29968 -- Doc'd that QuerySet.bulk_update() doesn't check for duplicates.
This commit is contained in:
parent
bc05547cd8
commit
52d06d3041
1 changed files with 1 additions and 0 deletions
|
|
@ -2126,6 +2126,7 @@ them, but it has a few caveats:
|
||||||
``batch_size``.
|
``batch_size``.
|
||||||
* Updating fields defined on multi-table inheritance ancestors will incur an
|
* Updating fields defined on multi-table inheritance ancestors will incur an
|
||||||
extra query per ancestor.
|
extra query per ancestor.
|
||||||
|
* If ``objs`` contains duplicates, only the first one is updated.
|
||||||
|
|
||||||
The ``batch_size`` parameter controls how many objects are saved in a single
|
The ``batch_size`` parameter controls how many objects are saved in a single
|
||||||
query. The default is to create all objects in one batch, except for SQLite
|
query. The default is to create all objects in one batch, except for SQLite
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue