Skip to content
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

Support returning ids for mysql too #779

Open
fmichaut-diff opened this issue Aug 30, 2022 · 1 comment
Open

Support returning ids for mysql too #779

fmichaut-diff opened this issue Aug 30, 2022 · 1 comment

Comments

@fmichaut-diff
Copy link

fmichaut-diff commented Aug 30, 2022

According to this: https://stackoverflow.com/questions/7333524/how-can-i-insert-many-rows-into-a-mysql-table-and-return-the-new-ids
It is possible to compute the inserted IDs on mysql and returning in the ids field of the result like it is done for Postgres.

It would be a great improvement as it is very useful to be able to get the list of records that just got inserted and there is no easy way to do it manually: the only way is to manually loop on the bulk imported data and .find_by each record

@jkowens
Copy link
Collaborator

jkowens commented Aug 30, 2022

That has been discussed here: #279

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants