-
Notifications
You must be signed in to change notification settings - Fork 6
Faster bulk_create using dictionaries #113
Copy link
Copy link
Open
Description
Code of Conduct
- I agree to follow Django's Code of Conduct
Feature Description
Allow QuerySet.bulk_create to accept dictionaries in addition to model instances. This would be symmetrical to QuerySet.values.
Problem
Creating model instances is expensive and significantly slows down bulk-inserting data. By using dictionaries, we can avoid this bottleneck.
Request or proposal
proposal
Additional Details
Implementation Suggestions
As linked in the forum, here's a tentative implementation that I prepared: adamsol/django@ed1ad9c. It would mostly require tests.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Idea