Changes between Initial Version and Version 1 of Ticket #27385
- Timestamp:
- Oct 25, 2016, 6:15:58 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #27385
- Property Severity Normal → Release blocker
- Property Triage Stage Unreviewed → Ready for checkin
- Property Summary Error in bulk_create() when objs length is a multiple plus one of batch_size → Error in QuerySet.bulk_create() on PostgreSQL when objs length is a multiple plus one of batch_size
-
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)