Why is bulk_create() more efficient than saving objects in a loop, and what are its limitations?
Last updated
bulk_create()batches many rows into one or few multi-row INSERTs instead of one query per.save(), cutting round trips.batch_sizesplits very large inserts.It bypasses
save(),pre_save/post_savesignals, andauto_nowlogic.Primary keys may not be set on some backends (PostgreSQL returns them). It doesn't support multi-table inheritance or M2M relations.