Connection timed out while connecting to upstream on AWS

Home on GUJ is /categories right?

A GET /categories.json takes 262ms with only 24.2ms on 18 queries (9%) for me.

Your database seen to be very bad. People talk shit about RDS but I didn’t know it was that bad.

You can try to VACUUM VERBOSE ANALYZE the entire database and see if it works. If you expand the timing and see the slow queries, you can target the slow tables first.