Slow response when using NextJS Pages api and D1

What is the name of the domain?

https://bill-split-2kw.pages.dev/api/event?path=test

What is the issue you’re encountering

It cost 4s to response back with simple GET query in D1 and NextJS Pages API

Screenshot of the error

May I ask if it’s with or without cache? :thinking:

Wodner if there were some incidents or maintenance related to the Pages or API which would cause such timing.

Are you on a Free or Paid plan type?

Thank for your response, I am using paid version with 5$/month and I’m not using cache. However, it was just a simple query for GET/POST request. I just do findUnique query in D1 but it got 700ms to response with only boolean value. Query in D1 report is very fast but it took so long to response back to user

This is my simple cURL but it took 700ms
curl https://bill-split-2kw.pages.dev/api/path?path=testestestestest

and this is my function in NextJS API

This topic was automatically closed after 15 days. New replies are no longer allowed.