Re:Journey to Optimize Cloudflare D1 Database Queries
by ambigious7777 on Monday April 07, 2025 @03:11PM
(#43614808)
I'm pretty sure D1 and DO build upon each other. I'm not sure exactly how, but I do remember reading about them using shared infra.
[ Parent
| on HN ]
Re:Journey to Optimize Cloudflare D1 Database Queries
by manter on Thursday April 10, 2025 @01:46PM
(#43646347)
D1 is built using Durable Objects - so in theory DO could be faster.
AFAIK when you call D1 it's Worker > D1 (Durable Object) > local storage.
So using DO directly would just be DO > local storage.
I believe the connection between worker and D1 is the painful part, requiring multiple round trips.