8 ms·
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 dir
by manter 1y ago
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.