Project

Profile

Help

Issue #4306

closed

The BulkCreateManager.bulk_get_or_create() breaks ourter transactions.

Added by jortel@redhat.com over 5 years ago. Updated over 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Category:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 47
Quarter:

Description

Both bulk_create() and save() need to be called within a nested transaction so that it can be safely used in an outer transaction. Even though an IntegrityError is caught, it will still cause the transaction to be in an ERROR state and can no longer be used.

Also available in: Atom PDF