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
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
The text was updated successfully, but these errors were encountered:
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.
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
The text was updated successfully, but these errors were encountered: