You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This feature is already requested in the ideas section 41107 I am creating another one to point out a similar functionality in another ORM.
There's this method in Sequelize ORM bulkInsert. The important difference between Sequelize's bulkInsert and Laravel's eloquent insert is that Sequelize returns the inserted records as model instances.
Now, this thing can also be implemented in the Eloquent. Most people that have been using Laravel uses MySQL as a database. And the feature INSERT ... RETURNING has landed in MariaDB v10.10.
This feature is useful when you also have to use the inserted models later in the application, as it will prevent running further queries for the purpose of fetching inserted records.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This feature is already requested in the ideas section 41107 I am creating another one to point out a similar functionality in another ORM.
There's this method in Sequelize ORM bulkInsert. The important difference between Sequelize's bulkInsert and Laravel's eloquent insert is that Sequelize returns the inserted records as model instances.
Now, this thing can also be implemented in the Eloquent. Most people that have been using Laravel uses MySQL as a database. And the feature
INSERT ... RETURNING
has landed in MariaDB v10.10.This feature is useful when you also have to use the inserted models later in the application, as it will prevent running further queries for the purpose of fetching inserted records.
Beta Was this translation helpful? Give feedback.
All reactions