Yes, I think it's networking latency. The Cloudflare Worker is being spun up in the UK, because tha
Yes, I think it's networking latency.
The Cloudflare Worker is being spun up in the UK, because that's the closest CF endpoint.
But then the SQL query is being sent to wherever the D1 core is currently.
So even a trivial 1 row select from a 1 row table takes 200 - 250ms to return.
I've not tested from APAC yet, I guess it will end up 500-750ms from there.
I'm really hoping read-replicas fixes that problem, although I guess writes will still be slow.
The Cloudflare Worker is being spun up in the UK, because that's the closest CF endpoint.
But then the SQL query is being sent to wherever the D1 core is currently.
So even a trivial 1 row select from a 1 row table takes 200 - 250ms to return.
I've not tested from APAC yet, I guess it will end up 500-750ms from there.
I'm really hoping read-replicas fixes that problem, although I guess writes will still be slow.

