15 FindDefaultBranchName calls on empty project
On a node using Gitaly atop NFS, navigating to a blank project results in 15 Gitaly queries to FindDefaultBranchName:
{
"method":"GET",
"path":"/root/test-www",
"format":"html",
"controller":"ProjectsController",
"action":"show",
"status":200,
"duration":7379.42,
"view":6775.17,
"db":447.35,
"time":"2019-03-07T23:42:37.142Z",
"params":[
{
"key":"namespace_id",
"value":"root"
},
{
"key":"id",
"value":"test-www"
}
],
"remote_ip":"x.x.x.x",
"user_id":1,
"username":"root",
"ua":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36",
"gitaly_calls":15,
"correlation_id":"FYFQU1mPjq3"
}
I thought this was supposed to be cached in RequestStore
, but apparently it is not.
Edited by Stan Hu