Changes between Initial Version and Version 1 of Ticket #27385


Ignore:
Timestamp:
10/25/16 23:15:58 (6 years ago)
Author:
Tim Graham
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27385

    • Property Severity changed from Normal to Release blocker
    • Property Summary changed from Error in bulk_create() when objs length is a multiple plus one of batch_size to Error in QuerySet.bulk_create() on PostgreSQL when objs length is a multiple plus one of batch_size
    • Property Triage Stage changed from Unreviewed to Ready for checkin
  • 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