Installing the module in a DB with more than 50000 accounts and groups made the install stall.
It turns out this method's implementation produced almost endless recursion. it was also depending on some fields that never were used.
Now it depends on the parent path, so when one group is moved to another parent, its computed accounts are recomputed, and parents' too, recursively.
Now, the method is much more performant, and the module gets installed in the same DB in 30s.
@moduon MT-1900
Co-authored-by: Eduardo De Miguel <edu@moduon.team>