Changes between Initial Version and Version 1 of Ticket #27385
- Timestamp:
- 10/25/16 23:15:58 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #27385
-
Property
Severity
changed from
Normal
toRelease blocker
-
Property
Summary
changed from
Error in bulk_create() when objs length is a multiple plus one of batch_size
toError in QuerySet.bulk_create() on PostgreSQL when objs length is a multiple plus one of batch_size
-
Property
Triage Stage
changed from
Unreviewed
toReady for checkin
-
Property
Severity
changed from
-
Ticket #27385 – Description
initial v1 1 With the model 2 3 1 With the model: 4 2 {{{ 5 3 from django.db import models … … 9 7 10 8 }}} 11 12 using a "real" db (postgresql) if I try to do this 13 9 If I try to do this on PostgreSQL: 14 10 {{{ 15 11 objs = [TestModel(number=n) for n in range(11)] 16 12 TestModel.objects.bulk_create(objs, batch_size=10) 17 13 }}} 18 19 I get this error 20 14 I get this error: 21 15 {{{ 22 16 /home/bameda/.virtualenvs/taiga/lib/python3.5/site-packages/django/db/models/manager.py in manager_method(self, *args, **kwargs)