tRPC queries&mutations really slow on Vercel+Planetscale deployment
Hello!
I deployed my T3 app to vercel and the DB to Planetscale, and I am seeing some incredibly slow speeds on the queries/mutations for tRPC. Take this mutation for following a user for example:
This mutation averages around 800-1000 ms on Vercel+Planetscale, while it locally never takes more than 100ms. I would love some insight into what I might need to look into. Maybe something is misconfigured? Both Planetscale and Vercel are located in same region (eu-west).
This problem is for all tRPC queries/mutations 😬
Thank you for reading
2 Replies