Django database is really slow with PostgreSQL [closed]

I've built a simple website using django. Everything was fine with SQLite, but when I started deploying and switched to vercel's PostgreSQL database page load time jumped to around 5-10secs, even if I run django locally and connect to the hosted database.

I tried to switch to aiven but it didn't help, so I think problem is not in vercel. My database is pretty small (it's a portfolio project), around 40 books and 2 users so it's probably not an optimization issue either. Also, I wrote a simple script to migrate database from vercel to aiven and it looks to do so with normal speed, but I'm not sure.

Back to Top