16007: Migration works with large database
authorPeter Amstutz <peter.amstutz@curii.com>
Mon, 8 Jun 2020 14:43:47 +0000 (10:43 -0400)
committerPeter Amstutz <peter.amstutz@curii.com>
Wed, 17 Jun 2020 17:57:25 +0000 (13:57 -0400)
commit60022ad25ba8d143578d9f20eda93744688909d2
tree2bd9a8f643bb9075955da80010373e50931baba3
parent2439015112bcf7de6cdfc8170bea9a464db5e616
16007: Migration works with large database

Changing individual permissions on groups that affect a lot of objects
is expensive.  The migration now suppresses permission updates and
does a batch update at the end.

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>
services/api/db/migrate/20200602141328_fix_roles_projects.rb
services/api/db/structure.sql
services/api/lib/fix_roles_projects.rb
services/api/lib/update_permissions.rb