single thread on D1 and network latency is going to kill you, you're better off batching if possible

single thread on D1 and network latency is going to kill you, you're better off batching if possible, this is one thing DO is better than D1 because you can customize how you batch queries better when you need things like shared IDs, groupig or aggregation outside of SQL. but for straight D1, you're way better off working your query into something that grabs it all in one go, especially since you don't pay for CPU on D1
Was this page helpful?