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