Clarify bulk-create comment in spawner.
This commit is contained in:
parent
c27c96f423
commit
dee0bfe010
1 changed files with 3 additions and 2 deletions
|
|
@ -154,8 +154,9 @@ def _batch_create_object(*objparams):
|
||||||
# bulk create all objects in one go
|
# bulk create all objects in one go
|
||||||
|
|
||||||
# unfortunately this doesn't work since bulk_create doesn't creates pks;
|
# unfortunately this doesn't work since bulk_create doesn't creates pks;
|
||||||
# the result are database objects at the next stage
|
# the result would be duplicate objects at the next stage, so we comment
|
||||||
# dbobjs = _ObjectDB.objects.bulk_create(dbobjs)
|
# it out for now:
|
||||||
|
# dbobjs = _ObjectDB.objects.bulk_create(dbobjs)
|
||||||
|
|
||||||
dbobjs = [ObjectDB(**objparam[0]) for objparam in objparams]
|
dbobjs = [ObjectDB(**objparam[0]) for objparam in objparams]
|
||||||
objs = []
|
objs = []
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue