https://how2.sh/posts/how-to-implement-database-query-profiling-for-performance-debugging/
How to Implement Database Query Profiling for Performance Debugging