Changes between Initial Version and Version 1 of Ticket #30138


Ignore:
Timestamp:
Jan 28, 2019, 9:19:26 AM (5 years ago)
Author:
Tim Graham
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30138

    • Property Triage Stage UnreviewedAccepted
    • Property Summary Return pk of created objects when ignore_conflicts set True on QuerySet.bulk_create()Allow QuerySet.bulk_create() to set pk of created objects when ignore_conflicts=True
    • Property Type UncategorizedCleanup/optimization
  • Ticket #30138 – Description

    initial v1  
    1 According to [https://code.djangoproject.com/ticket/28668#comment:24] comment, I create new ticket for returning pk of created objects. I tried it in Postgresql 10.6 and this subject is supported. I see that when ignore_confilicts set as True, django api doesn't put ' RETURNING "mymodel"."id" ' in query.
     1As requested in ticket:28668#comment:24, here's a ticket for setting the primary keys of created objects. I tried it in PostgreSQL 10.6 and this could be supported. When `ignore_confilicts=True`, Django doesn't put `' RETURNING "mymodel"."id" '` in the query.
Back to Top