-
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
|
Beta Was this translation helpful? Give feedback.
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
|
Beta Was this translation helpful? Give feedback.
-
Related: #2945 |
Beta Was this translation helpful? Give feedback.
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