Haijiang’s TILs
Bulk create the data at a time.
bulk = [] for dev in data: bulk.append(Device(sn=dev.sn)) objs = Device.objects.bulk_create(bulk)
Created 2022-10-21T16:08:07+08:00 · Edit