Using xdebug profiler to discover what made API query slow. Then, attached doctrine query logger to see what SQL queries were executed.
00:54 xdebug profiler
05:28 Doctrine query log
Русская версия на • Анализ медленных ассоциаций в orm doc...