Repository navigation
|
When multiple rows are being inserted using the Knex adapter, they're all being inserted & then selected in separate database calls. Is there a reason the rows aren't being passed in as a list to Knex so they can all be inserted in one database call? feathers/packages/knex/src/adapter.ts Lines 238 to 240 in 82d30fd According to the Knex documentation inserting a array of rows is supported |
Answered by
howlettt
Jan 4, 2024
Replies: 2 comments
|
Looks like not all databases support returning the ids for all the inserted rows when inserting multiple at once https://knexjs.org/guide/query-builder.html#insert
|
0 replies
Answer selected by
howlettt
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looks like not all databases support returning the ids for all the inserted rows when inserting multiple at once
https://knexjs.org/guide/query-builder.html#insert
knex/knex#1828