Ask HN: How do I profile my Postgres database? I am running a t3.micro instance -- and doing about 8 queries / second. Not many, but it seems like queries are consistently taking 1-10 seconds to respond, and as a result, the site is going down. I'm having a hard time telling what the problem is. Are some of my queries really slow and inefficiently designed? Is is it just that my database is too small and I need to upgrade it? Is there something I can attach to my database that can easily tell me what the bottleneck is? (Disk, CPU, memory) |