WIP: Loading pipelines and merge requests take excessive amount of time (large CI file with many jobs)
Summary
When you have a large (> 9000 lines) CI file with tens of jobs, sometimes the pipelines page takes long to load (> 15 seconds). The same has also been noted for the merge requests page.
Steps to reproduce
- Create a project with a large CI file (> 9000 lines) with many jobs (e.g. 50 jobs)
- Run several pipelines so that the pipelines page is full
- Loading the pipelines page will now take long, sometimes more than 15 seconds
Example Project
What is the current bug behavior?
When you have a large (> 9000 lines) CI file with tens of jobs, sometimes the pipelines page takes long to load (> 15 seconds). The same has also been noted for the merge requests page.
What is the expected correct behavior?
The pipelines page should be optimized to load faster
Relevant logs and/or screenshots
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:env:info`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true
)(we will only investigate if the tests are passing)