Skip to content

Commit 7433cce

Browse files
committed
Actioning feedback.
1 parent e4ff9d2 commit 7433cce

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

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

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,13 +211,18 @@ The new beta version of Durable Objects is available where each Durable Object h
211211

212212
## D1 vs Hyperdrive
213213

214-
D1 is a standalone, serverless database that provides a SQL API, using SQLite's SQL semantics, to store and access your relational data.
214+
D1 is a standalone, serverless database that provides a SQL API, using SQLite's SQL semantics, to store and access your relational data.
215215

216216
Hyperdrive is a service that improves the performance of your existing, regional PostgreSQL databases, optimizing them for global data access from Workers.
217217

218-
If you are building a new project on Workers or are considering migrating your data, use D1.
218+
- If you are building a new project on Workers or are considering migrating your data, use D1.
219+
- If you are building a Workers project with an existing PostgreSQL database, use Hyperdrive.
220+
- If your database exceeds 10 GB (the maximum size for a D1 database), consider splitting the database to multiple, smaller D1 databases, or use your existing PostgreSQL database with Hyperdrive.
219221

220-
If you are building a Workers project with an existing PostgreSQL database, use Hyperdrive.
222+
:::caution
221223

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/).
224+
You cannot use D1 with Hyperdrive.
223225

226+
However, 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/).
227+
228+
:::

0 commit comments

Comments
 (0)