I am working on a Symfony 3.4
based project using Doctrine 2.6
.
Is it somehow possible to automatically monitor all Doctrine queries and log those with an execution time above some threshold?
I have used blackfire.io
and other tools on my dev version to find and fix potential performance issues. However even the best testing is always something different than running the same code on real data in production.
Thus I would like to know which queries take the most time to execute when running in production.