Skip to content

v0.12.1

Choose a tag to compare

@grigi grigi released this 15 Jun 07:07
c984426

Bulk insert operation

The bulk insert operation will do the minimum to ensure that the object created in the DB has all the defaults and generated fields set, but may be incomplete reference in Python.

e.g. IntField primary keys will not be poplulated.

This is recommend only for throw away inserts where you want to ensure optimal insert performance.

User.bulk_create([
    User(name="...", email="..."),
    User(name="...", email="...")
])

Also: Notable efficiency improvement for regular inserts