-
Notifications
You must be signed in to change notification settings - Fork 251
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
createMany operation #1550
Merged
Merged
createMany operation #1550
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query-engine/connectors/sql-query-connector/src/database/operations/write.rs
Outdated
Show resolved
Hide resolved
Actually, it's 2100. prisma/tiberius#104
-------- Original Message --------
…On Jan 26, 2021, 15:58, Dominic Petrick wrote:
@dpetrick commented on this pull request.
---------------------------------------------------------------
In [query-engine/connectors/sql-query-connector/src/database/operations/write.rs](#1550 (comment)):
> use user_facing_errors::query_engine::DatabaseConstraint;
+/// The maximum amount of rows that can be inserted at once.
+const MAX_ROWS: usize = 2500;
SQL server has a limit of rows, as per ***@***.***(https://github.com/pimeys).
—
You are receiving this because you were mentioned.
Reply to this email directly, [view it on GitHub](#1550 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AAAIRF45NZHNFDXX4XXMOGLS33KCVANCNFSM4WR7UBRQ).
|
Remove ability to write autoincrement fields for SQL server.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related issue: prisma/prisma#4998
Adds
createMany
top level and nested operations for creating many records at once. Returns the number of inserted rows.Supported databases:
Input type for the operation is compatible with unchecked scalar inputs:
Other constraints:
createMany
is only available on 1:m relations where the many side is on the child.skipDuplicates
is available for Postgres and MySQL to ignore unique key violations on bulk insert, but is unavailable on SQL server.Examples: