Group#owners is called by 78 Rails actions while performing rather badly
Using https://gitlab.com/gitlab-org/inspector-influx/blob/master/lib/common_methods.rb I got the following output:
Method Actions Average Minimum Maximum Group#owners 78 257.18 100.76 1445.75
Quickly looking at the code it seems to be calling
Array#map on a query result set to get a list of User objects. Whether this can be improved I'm not sure of, but either way 257 ms on average really is too much.