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

Big transactions #37

Open
heinrichhanekom opened this issue Nov 15, 2017 · 1 comment
Open

Big transactions #37

heinrichhanekom opened this issue Nov 15, 2017 · 1 comment

Comments

@heinrichhanekom
Copy link

Hi
Is there an option to use update_all instead of single transactions?
This can become an real issue for some resources. Consider the following:
An organisation can have many profiles (lets say 10). Every profile has many trackings (1 a day for 3 years = 1095 )
When you archive the organisation it would create 1 + 10 + (10*1095) = 10.961 queries.
Thats kind of a lot.
Thanks

@janxious
Copy link
Contributor

Not currently, but we would accept a patch. IIRC we didn't do bulk changes initially due to the data required to archive something being difficult to get at efficiently and generically when we wrote this gem (late rails 2 era). I suspect with Arel and some hard thinking it is doable now.

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