Skip to content

Project#get_issue is called by 44 Rails actions while performing rather badly

Using the script https://gitlab.com/gitlab-org/inspector-influx/blob/master/lib/common_methods.rb I got the following output:

Method                                Actions  Average  Minimum  Maximum
Project#get_issue                     44       677.15   176.25   4163.03

677 milliseconds for something called by 44 different actions seems to be quite a lot, especially with a peak of 4.1 seconds.