Banzai calls Gitaly n+1 times
Rendering GitLab markdown is done in a sequential manner: every renderable item found while reading the document is processed immediately and its output added to the result. For Gitaly this means that if a document contains 100 commit references then 100 FindCommit
RPCs will be invoked. We should consider adding the ability to batch commit processing so that we're able to call use our batch RPC ListCommitsByOid
Reproducable case: https://gitlab.com/g.grossetie/gitlab-ce/tree/leftover-ext/spec/support/test_reports where it performs over 500 requests right now.
Edited by Zeger-Jan van de Weg