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

Is it possible to delay inserting versions while seeding data? #34

Closed
mirelon opened this issue Nov 29, 2017 · 2 comments
Closed

Is it possible to delay inserting versions while seeding data? #34

mirelon opened this issue Nov 29, 2017 · 2 comments

Comments

@mirelon
Copy link

mirelon commented Nov 29, 2017

I have seeds, which are inserting lot of various data into DB.

Profiling shows that lot of time is spent inserting paper_trail versions.

Is it possible to postpone inserting paper_trail versions to the end of seeding? And then insert all versions in one batch?

@izelnakri
Copy link
Owner

If anyone wants to implement batch operations(PaperTrail.insert_all, PaperTrail.update_all and PaperTrail.delete_all methods) I'm more than happy to review it, currently I don't need such a feature so I haven't implemented it nor any of the contributors.

I do understand its usefulness and I'm in favor it in case if you like to build it and create a pull request.

@izelnakri
Copy link
Owner

Related to: #4

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