Follow-up Slow pipelines.json response
We fixed pipelines.json endpoints (Used in MR and pipeline index page) in #9549 (closed) by avoiding calling
scoped_variables for each deployable job, however, the endpoint still is very slow that takes 6-7 sec.
We have to investigate the root problem and optimize the endpoint.
- Call Stack with 11.7-RC on gitlab.com http://profiler.gitlap.com/20190124/5293ef8a-f235-4d8e-a475-f485a32141a9.html.gz
- Call Stack with 11.8-RC on gitlab.com (Scoped variables fixed) http://profiler.gitlap.com/20190213/dae89a0b-ffd9-484e-bab9-4469f67e2248.html.gz