Changes between Initial Version and Version 1 of Ticket #27385


Ignore:
Timestamp:
Oct 25, 2016, 6:15:58 PM (8 years ago)
Author:
Tim Graham
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27385

    • Property Severity NormalRelease blocker
    • Property Triage Stage UnreviewedReady for checkin
    • Property Summary Error in bulk_create() when objs length is a multiple plus one of batch_sizeError 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 
     1With the model:
    42{{{
    53from django.db import models
     
    97
    108}}}
    11 
    12 using a "real" db (postgresql) if I try to do this
    13 
     9If I try to do this on PostgreSQL:
    1410{{{
    1511objs = [TestModel(number=n) for n in range(11)]
    1612TestModel.objects.bulk_create(objs, batch_size=10)
    1713}}}
    18 
    19 I get this error
    20 
     14I get this error:
    2115{{{
    2216/home/bameda/.virtualenvs/taiga/lib/python3.5/site-packages/django/db/models/manager.py in manager_method(self, *args, **kwargs)
Back to Top