Skip to content

Commit 9d7d4fb

Browse files
Oxyjunvy-tonhyperlint-ai[bot]marciocloudflare
authored
[D1] Adding a line of text to encourage horizontal scaling in D1 (#18046)
* Adding a line of text in the Overview page to talk about horizontal scaling. * Update src/content/docs/d1/index.mdx Co-authored-by: Vy Ton <[email protected]> * Apply suggestions from code review Co-authored-by: hyperlint-ai[bot] <154288675+hyperlint-ai[bot]@users.noreply.github.com> * Adding FAQs to the Limits page. * Adding introductory line to D1 pricing FAQs. * Combining the FAQ into one question. * Adding more detail. * Wording edits for FAQ * Update src/content/docs/d1/platform/limits.mdx Co-authored-by: Vy Ton <[email protected]> * Accepting feedback. * Wording edit * Apply suggestions from code review Co-authored-by: marciocloudflare <[email protected]> --------- Co-authored-by: Vy Ton <[email protected]> Co-authored-by: hyperlint-ai[bot] <154288675+hyperlint-ai[bot]@users.noreply.github.com> Co-authored-by: marciocloudflare <[email protected]>
1 parent d90b89b commit 9d7d4fb

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

src/content/docs/d1/index.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ Create new serverless SQL databases to query from your Workers and Pages project
2323

2424
<Plan type="workers-all" />
2525

26-
D1 is Cloudflare’s native serverless database. D1 allows you to build applications that handle large amounts of users at no extra cost. With D1, you can restore your database to any minute within the last 30 days.
26+
D1 is Cloudflare's managed, serverless database with SQLite's SQL semantics, built-in disaster recovery, and Worker and HTTP API access.
27+
28+
D1 is designed for horizontal scale out across multiple, smaller (10 GB) databases, such as per-user, per-tenant or per-entity databases. D1 allows you to build applications with thousands of databases at no extra cost for isolating with multiple databases. D1 pricing is based only on query and storage costs.
2729

2830
Create your first D1 database by [following the Get started guide](/d1/get-started/), learn how to [import data into a database](/d1/build-with-d1/import-export-data/), and how to [interact with your database](/d1/build-with-d1/d1-client-api/) directly from [Workers](/workers/) or [Pages](/pages/functions/bindings/#d1-databases).
2931

src/content/docs/d1/platform/limits.mdx

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,19 @@ Limits for individual queries (listed above) apply to each individual statement
4141

4242
Cloudflare also offers other storage solutions such as [Workers KV](/kv/api/), [Durable Objects](/durable-objects/), and [R2](/r2/get-started/). Each product has different advantages and limits. Refer to [Choose a data or storage product](/workers/platform/storage-options/) to review which storage option is right for your use case.
4343

44-
<Render file="limits_increase" product="workers" />
44+
<Render file="limits_increase" product="workers" />
45+
46+
## Frequently Asked Questions
47+
48+
Frequently asked questions related to D1 limits:
49+
50+
### How much work can a D1 database do?
51+
52+
D1 is designed for horizontal scale out across multiple, smaller (10 GB) databases, such as per-user, per-tenant or per-entity databases. D1 allows you to build applications with thousands of databases at no extra cost for isolating with multiple databases, as the pricing is based only on query and storage costs.
53+
54+
- Each D1 database can store up to 10 GB of data, and you can create up to thousands of separate D1 databases. This allows you to split a single monolithic database into multiple, smaller databases, thereby isolating application data by user, customer, or tenant.
55+
- SQL queries over a smaller working data set can be more efficient and performant while improving data isolation.
56+
57+
:::caution
58+
Note that the 10 GB limit of a D1 database cannot be further increased.
59+
:::

0 commit comments

Comments
 (0)