Giải thích thế nào là Point Read trong Cosmos DB?
Giải thích thế nào là Point Read trong Cosmos DB?
Point read là thao tác đọc một item duy nhất bằng id + partition key (ReadItemAsync) — cách đọc rẻ và nhanh nhất trong Cosmos DB.
ItemResponse<Order> r = await container.ReadItemAsync<Order>("o1", new PartitionKey("u7"));
Console.WriteLine(r.RequestCharge); // ≈ 1 RU cho item 1 KB
Đăng nhập để tham gia thảo luận cùng mọi người.
Chưa có bình luận nào
Hãy là người đầu tiên chia sẻ suy nghĩ của bạn.