The SQL query performance itself is identical between D1 and SQLite DOs. The only difference is that
The SQL query performance itself is identical between D1 and SQLite DOs. The only difference is that D1 is in a different location from your Worker code location so doing multiple D1 roundtrips can be costly depending on those locations. With DOs you could colocate code inside the DO and then you always have fast access. If you are calling your DO from a different worker for each query then performance is again identical between the two products.
D1 REST API is completely separately flow, and should not be used in hot paths of your application on Workers.
D1 REST API is completely separately flow, and should not be used in hot paths of your application on Workers.


