Skip to content

Commit f3d40f4

Browse files
Merge pull request #281335 from jcocchi/update-cache-ReadMany
[Cosmos DB] Update integrated cache docs with ReadMany guidance
2 parents bc165a1 + 4920984 commit f3d40f4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

articles/cosmos-db/integrated-cache.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: seesharprun
55
ms.service: cosmos-db
66
ms.subservice: nosql
77
ms.topic: conceptual
8-
ms.date: 12/27/2023
8+
ms.date: 7/19/2024
99
ms.author: sidandrews
1010
ms.reviewer: jucocchi
1111
---
@@ -55,6 +55,7 @@ Item cache is used for point reads (key/value look ups based on the Item ID and
5555

5656
- New writes, updates, and deletes are automatically populated in the item cache of the node that the request is routed through
5757
- Items from point read requests where the item isn’t already in the cache (cache miss) of the node the request is routed through are added to the item cache
58+
- Read requests for multiple items, such as ReadMany, populate the query cache as a set instead of the item cache as individual items
5859
- Requests that are part of a [transactional batch](./nosql/transactional-batch.md) or in [bulk mode](./nosql/how-to-migrate-from-bulk-executor-library.md#enable-bulk-support) don't populate the item cache
5960

6061
### Item cache invalidation and eviction
@@ -73,6 +74,7 @@ The query cache is used to cache queries. The query cache transforms a query int
7374

7475
- If the cache doesn't have a result for that query (cache miss) on the node it was routed through, the query is sent to the backend. After the query is run, the cache will store the results for that query
7576
- Queries with the same shape but different parameters or request options that affect the results (ex. max item count) are stored as their own key/value pair
77+
- Read requests for multiple items, such as ReadMany, populate the query cache. ReadMany results are stored as a set, and requests with different inputs will be stored as their own key/value pair
7678

7779
### Query cache eviction
7880

0 commit comments

Comments
 (0)