1
0
mirror of https://github.com/django/django.git synced 2025-10-09 23:09:12 +00:00

[6.0.x] Refs #36143, #28596 -- Avoided mentioning exact query parameter limit in bulk_create() docs.

Backport of 0a09c60e97166e0188717ff340b4d93b72207e96 from main.
This commit is contained in:
Jacob Walls 2025-09-25 09:56:24 -04:00
parent 851400194d
commit 2fe18d943f

View File

@ -2455,8 +2455,8 @@ This has a number of caveats though:
Entry.objects.bulk_create(batch, batch_size)
The ``batch_size`` parameter controls how many objects are created in a single
query. The default is to create all objects in one batch, except for SQLite
where the default is such that at most 999 variables per query are used.
query. The default is to create as many objects in one batch as the database
will allow. (SQLite and Oracle limit the number of parameters in a query.)
On databases that support it (all but Oracle), setting the ``ignore_conflicts``
parameter to ``True`` tells the database to ignore failure to insert any rows