1
0
mirror of https://github.com/django/django.git synced 2025-10-29 08:36:09 +00:00
Commit Graph

2 Commits

Author SHA1 Message Date
Simon Charette
3df1ad57bf [5.2.x] Fixed #36502 -- Restored UNNEST strategy for foreign key bulk inserts on PostgreSQL.
Regression in 764af7a3d6.

Backport of 0fe218842e from main.
2025-07-10 18:36:01 +02:00
Simon Charette
a16eedcf9c Fixed #35936 -- Used unnest for bulk inserts on Postgres when possible.
This should make bulk_create significantly faster on Postgres when provided
only literal values.

Thanks James Sewell for writing about this technique, Tom Forbes for
validating the performance benefits, David Sanders and Mariusz Felisiak
for the review.
2024-12-11 13:56:18 +01:00