Skip to content

Commit 9e1cd8b

Browse files
authored
Add D1 vs Hyperdrive
1 parent c12507e commit 9e1cd8b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/content/docs/workers/platform/storage-options.mdx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,4 +209,15 @@ The new beta version of Durable Objects is available where each Durable Object h
209209

210210
:::
211211

212+
## D1 vs Hyperdrive
213+
214+
D1 is a standalone, serverless database that provides a SQL API to store and access your relational data.
215+
216+
Hyperdrive is a service that improves the performance of your existing, regional PostgreSQL databases, optimizing them for global data access from Workers.
217+
218+
If you are building a new project on Workers or are considering migrating your data, use D1.
219+
220+
If you are building a Workers project with an existing PostgreSQL database, use Hyperdrive.
221+
222+
D1 does not need to be used with Hyperdrive because it does not have slow connection setups which would benefit from Hyperdrive's connection pooling. D1 data can also be cached within Workers using the [Cache API](/workers/runtime-apis/cache/).
212223

0 commit comments

Comments
 (0)