Sitelet https://web.archive.org/web/20201130043606/https://github.com/encode/orm/issues/55
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add QuerySet-level method: bulk_create #55

Open
malikoth opened this issue Dec 10, 2019 · 3 comments
Open

Add QuerySet-level method: bulk_create #55

malikoth opened this issue Dec 10, 2019 · 3 comments

Comments

@malikoth
Copy link

@malikoth malikoth commented Dec 10, 2019

I need an efficient way to add records to a db in bulk. I don't think it matters so much what the API looks like for accomplishing that. If there is an efficient way to do that already, even if it's not a QS-level method, please let me know.

Reference: https://docs.djangoproject.com/en/3.0/ref/models/querysets/#django.db.models.query.QuerySet.bulk_create

@rrmerugu
Copy link

@rrmerugu rrmerugu commented Mar 30, 2020

+1 . any update on this ?

@asnelling
Copy link

@asnelling asnelling commented Jul 31, 2020

Tackling it now

@collerek
Copy link

@collerek collerek commented Oct 22, 2020

Hi,

This project seems stale and from what I saw on encode page it's not a priority right now. Since I was tired with reinventing the wheel and needed something as soon as possible I created ormar package, that was inspired by this one.

Ormar bases its validation on pydantic so it can be used directly with fastapi as response and request models.

This issue was implemented in ormar, so feel free to check it out: https://github.com/collerek/ormar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.