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 upsertMany
CRUD operation
#5066
Comments
Closing in favour of #4134 |
@pantharshit00 curious why you closed this request? If I'm not mistaken the functionality described in #4134 is different than what's requested here. #4134 describes updating many records (or the first) using the same data, but what I'd expect Perhaps the name of that issue should be changed & this one reopened? Or the description of the other one updated to reflect what |
I would suggest you to comment on #4134 about this functionality. There is no final proposal for We could have |
Problem
I want to upsert a large number of items to the DB efficiently and I'd like to use a
prisma.myModel.upsertMany(...)
method.Suggested solution
The
upsertMany
method would batch-upsert an array of models into the DB.Alternatives
An alternative I came up with is using something like this:
The text was updated successfully, but these errors were encountered: