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 all,
I want to add has_closure_tree to a model A having 3 million data, and I also want to create the initial data for model A's old data in hierarchy table. I think if I just use A.rebuild! with one sidekiq job, my db and system may be not able to withstand the impact. Then I tried to generate 500 records with each job to get the actual execution time. But I found that a job took an average of 6 minutes. Do you have any suggestions? Or whether I can only upgrade my db? Thank you.
The text was updated successfully, but these errors were encountered:
Hi all,
I want to add has_closure_tree to a model A having 3 million data, and I also want to create the initial data for model A's old data in hierarchy table. I think if I just use A.rebuild! with one sidekiq job, my db and system may be not able to withstand the impact. Then I tried to generate 500 records with each job to get the actual execution time. But I found that a job took an average of 6 minutes. Do you have any suggestions? Or whether I can only upgrade my db? Thank you.
The text was updated successfully, but these errors were encountered: