Groups::EpicsController#discussions has excessive primary DB queries
See https://log.gprd.gitlab.net/app/r/s/lyWHJ
p95: 133.256 primary queries, max: 1,177 primary queries, samples 2185
Action items
-
Investigate if we can place any limits / pagination -
Investigate why this is not using a read replica (it's a GET endpoint) -
Investigate if there's any N+1 query
Edited by Thong Kuah