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

feat: add recordMany function #272

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mauri870
Copy link

@mauri870 mauri870 commented Jun 9, 2022

No description provided.

@cyrildewit
Copy link
Owner

What would be a use case for this?

@mauri870
Copy link
Author

mauri870 commented Jun 11, 2022

@cyrildewit One use case is when migrating from a different solution to yours, for example from a integer column views count to the eloquent-viewable package. We need to seed the views count we already have and using views($viewable)->record() does an insert per view so it's extremely slow, where as recordMany insert multiple rows with a single insert query.

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

Successfully merging this pull request may close these issues.

None yet

2 participants