Skip to content

Commit baff3c0

Browse files
committed
adjust changelog
1 parent 72f0b94 commit baff3c0

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

src/content/changelog/kv/2025-04-10-kv-bulk-reads.mdx

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,23 @@ title: Read multiple keys from Workers KV with bulk reads
33
description: You can now retrieve up to 100 keys in a single bulk read request to Workers KV.
44
products:
55
- kv
6-
date: 2025-01-28T14:00:00Z
6+
date: 2025-04-17T14:00:00Z
77
---
88

99
You can now retrieve up to 100 keys in a single bulk read request made to Workers KV.
1010

11-
This makes it easier to
11+
This makes it easier to request multiple KV pairs within a single Worker invocation. Retrieving many key-value pairs using the bulk read operation is more performant than making individual requests since bulk read operations are not affected by [Workers simultaneous connection limits](/workers/platform/limits/#simultaneous-open-connections).
12+
```js
13+
// Read single key
14+
const key = "key-a";
15+
const value = await env.NAMESPACE.get(keys);
1216

13-
Workers KV namespace limits were increased from 200 to 1000 for all accounts. Higher limits for Workers KV namespaces enable better organization of key-value data, such as by category, tenant, or environment.
17+
// Read multiple keys
18+
const keys = ["key-a", "key-b", "key-c", ...] // up to 100 keys
19+
const values : Map<string, string?> = await env.NAMESPACE.get(keys);
1420

15-
Consult the [Workers KV limits documentation](/kv/platform/limits/) for the rest of the limits. This increased limit is available for both the Free and Paid [Workers plans](/workers/platform/pricing/).
21+
// Print the value of "key-a" to the console.
22+
console.log(`The first key is ${values.get("key-a")}.`)
23+
```
24+
25+
Consult the [Workers KV Read key-value pairs API](/kv/api/read-key-value-pairs/) for full details on Workers KV's new bulk reads support.

0 commit comments

Comments
 (0)