Skip to content

Commit b9537ad

Browse files
[D1] Adding footnote entry into details component (#24173)
* Adding footnote entry into details component * Apply suggestions from code review Co-authored-by: marciocloudflare <[email protected]> --------- Co-authored-by: marciocloudflare <[email protected]>
1 parent 41e8326 commit b9537ad

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

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

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import { Render, Details } from "~/components";
1010

1111
| Feature | Limit |
1212
| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------- |
13-
| Databases | 50,000 (Workers Paid)[^0] / 10 (Free) |
13+
| Databases | 50,000 (Workers Paid)[^1] / 10 (Free) |
1414
| Maximum database size | 10 GB (Workers Paid) / 500 MB (Free) |
15-
| Maximum storage per account | 1 TB (Workers Paid)[^1] / 5 GB (Free) |
15+
| Maximum storage per account | 1 TB (Workers Paid)[^2] / 5 GB (Free) |
1616
| [Time Travel](/d1/reference/time-travel/) duration (point-in-time recovery) | 30 days (Workers Paid) / 7 days (Free) |
1717
| Maximum Time Travel restore operations | 10 restores per 10 minute (per database) |
1818
| Queries per Worker invocation (read [subrequest limits](/workers/platform/limits/#how-many-subrequests-can-i-make)) | 1000 (Workers Paid) / 50 (Free) |
@@ -23,28 +23,30 @@ import { Render, Details } from "~/components";
2323
| Maximum bound parameters per query | 100 |
2424
| Maximum arguments per SQL function | 32 |
2525
| Maximum characters (bytes) in a `LIKE` or `GLOB` pattern | 50 bytes |
26-
| Maximum bindings per Workers script | Approximately 5,000 [^2] |
27-
| Maximum SQL query duration | 30 seconds [^3] |
28-
| Maximum file import (`d1 execute`) size | 5 GB [^4] |
26+
| Maximum bindings per Workers script | Approximately 5,000 [^3] |
27+
| Maximum SQL query duration | 30 seconds [^4] |
28+
| Maximum file import (`d1 execute`) size | 5 GB [^5] |
2929

3030
:::note[Batch limits]
3131
Limits for individual queries (listed above) apply to each individual statement contained within a batch statement. For example, the maximum SQL statement length of 100 KB applies to each statement inside a `db.batch()`.
3232
:::
3333

34-
[^0]: The maximum number of databases per account can be increased by request on Workers Paid and Enterprise plans, with support for millions to tens-of-millions of databases (or more) per account. See the guidance on limit increases on this page to request an increase.
35-
[^1]: The maximum storage per account can be increased by request on Workers Paid and Enterprise plans. See the guidance on limit increases on this page to request an increase.
36-
[^2]: A single Worker script can have up to 1 MB of script metadata. A binding is defined as a binding to a resource, such as a D1 database, KV namespace, [environmental variable](/workers/configuration/environment-variables/), or secret. Each resource binding is approximately 150-bytes, however environmental variables and secrets are controlled by the size of the value you provide. Excluding environmental variables, you can bind up to \~5,000 D1 databases to a single Worker script.
37-
[^3]: Requests to Cloudflare API must resolve in 30 seconds. Therefore, this duration limit also applies to the entire batch call.
38-
[^4]: The imported file is uploaded to R2. See [R2 upload limit](/r2/platform/limits).
34+
[^1]: The maximum number of databases per account can be increased by request on Workers Paid and Enterprise plans, with support for millions to tens-of-millions of databases (or more) per account. Refer to the guidance on limit increases on this page to request an increase.
35+
[^2]: The maximum storage per account can be increased by request on Workers Paid and Enterprise plans. Refer to the guidance on limit increases on this page to request an increase.
36+
[^3]: A single Worker script can have up to 1 MB of script metadata. A binding is defined as a binding to a resource, such as a D1 database, KV namespace, [environmental variable](/workers/configuration/environment-variables/), or secret. Each resource binding is approximately 150-bytes, however environmental variables and secrets are controlled by the size of the value you provide. Excluding environmental variables, you can bind up to \~5,000 D1 databases to a single Worker script.
37+
[^4]: Requests to Cloudflare API must resolve in 30 seconds. Therefore, this duration limit also applies to the entire batch call.
38+
[^5]: The imported file is uploaded to R2. Refer to [R2 upload limit](/r2/platform/limits).
3939

4040
<Details header = "Footnotes" open={true}>
41-
1: The maximum storage per account can be increased by request on Workers Paid and Enterprise plans. See the guidance on limit increases on this page to request an increase.
41+
1: The maximum number of databases per account can be increased by request on Workers Paid and Enterprise plans, with support for millions to tens-of-millions of databases (or more) per account. Refer to the guidance on limit increases on this page to request an increase.
4242

43-
2: A single Worker script can have up to 1 MB of script metadata. A binding is defined as a binding to a resource, such as a D1 database, KV namespace, [environmental variable](/workers/configuration/environment-variables/), or secret. Each resource binding is approximately 150 bytes, however environmental variables and secrets are controlled by the size of the value you provide. Excluding environmental variables, you can bind up to \~5,000 D1 databases to a single Worker script.
43+
2: The maximum storage per account can be increased by request on Workers Paid and Enterprise plans. Refer to the guidance on limit increases on this page to request an increase.
4444

45-
3: Requests to Cloudflare API must resolve in 30 seconds. Therefore, this duration limit also applies to the entire batch call.
45+
3: A single Worker script can have up to 1 MB of script metadata. A binding is defined as a binding to a resource, such as a D1 database, KV namespace, [environmental variable](/workers/configuration/environment-variables/), or secret. Each resource binding is approximately 150 bytes, however environmental variables and secrets are controlled by the size of the value you provide. Excluding environmental variables, you can bind up to \~5,000 D1 databases to a single Worker script.
4646

47-
4: The imported file is uploaded to R2. See [R2 upload limit](/r2/platform/limits).
47+
4: Requests to Cloudflare API must resolve in 30 seconds. Therefore, this duration limit also applies to the entire batch call.
48+
49+
5: The imported file is uploaded to R2. Refer to [R2 upload limit](/r2/platform/limits).
4850
</Details>
4951

5052
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.

0 commit comments

Comments
 (0)