SLOW Queries, how do i find them?

If you’re using an external database, it can be helpful to set up slow query logging there. Search online for slow query logging, it’s usually just a setting like “log_min_duration_statement” in PostgreSQL or “long_query_time” in MySQL. You can then find out if your database is doing something unexpected when it calculates its execution plan.