3.0.0
Breaking Changes
-
The
redundant_updates
flag forpgbulk.upsert
was renamed toignore_unchanged
, and the default behavior was flipped by @wesleykendall in #38.Unlike before, unchanged rows are not ignored by default. See the pull request for a guide on how to update invocations from version 2.
Features
-
Support update expressions,
returning
, andignore_unchanged
inpgbulk.update
by @wesleykendall in #38pgbulk.update
's interface has reached feature parity withpgbulk.upsert
, allowing for returning results, ignoring unchanged rows from being updated, and bulk updates with expressions. -
New
pgbulk.copy
function that leveragesCOPY ... FROM
by @wesleykendall in #39pgbulk.copy
wraps Postgres'sCOPY ... FROM
to insert data. Can be dramatically faster than Django'sbulk_create
.
Changes
- Django 5.1 compatibilty, dropped Django 3.2 / Postgres 12 support by @wesleykendall in #37.