Next.js Discord

Discord Forum

Best way to benchmark cache performance on Next.js

Unanswered
Brown bear posted this in #help-forum
Open in Discord
Brown bearOP
Hi all,
I noticed my vercel-hosted website renders so slow. I think it is because of too much database accesses through Prisma. (I think vercel web server region is so far from my vercel database region).
I load most of data calling server action from server side rendered page, and server action fetches data from postgresql through prisma.
I am trying to improve it by hitting much more cache rather than accessing database on every request.
However, on my local postgresql server and local web server, I couldn't distinguish it is from cache or database.
Could you suggest the good practice to check cache hits or other performance improvement by caching?

0 Replies