For Workers & Pages, what is the name of the domain?
``
What is the issue or error you’re encountering
I have a worker binded to a D1 database. The total latency value for an http request to my worker which in turn runs a few statements against the D1 database is quite high, something around ~2500 ms in total where each sql statement to D1 takes something ~500 ms. This happens mainly because workers run on an edge location close my users but that location does not have support for D1 yet, so it needs to take a round trip to another location to query the data. So, I learned about smart placement and I have turned it on. After the initial set up time it started serving requests based on the smart placement config which brought the latency down to something ~200ms and ~15 ms for SQL statement against D1. A huge improvement. However, after a few hours there were none requests being served by the smart placement. All requests are served based on the default placement, which brought the latency up again. I have recheck all my configs. Dashboard shows smart placement on. I have applied all other recommendations and still no effect on being served by smart placement. How can I get it working once again for all my requests? What steps have you taken to resolve the issue?
What steps have you taken to resolve the issue?
Turned smart placement on
What are the steps to reproduce the issue?
Any request to my worker is now taking ~2500 ms to get a reply back.