gpt4 book ai didi

azure - 查询 Azure 存储表是否始终是 1 个事务?

转载 作者:行者123 更新时间:2023-12-02 07:41:51 24 4
gpt4 key购买 nike

假设我有一个包含 50K 行的 Azure 存储表,其中包含这样的实体

 {
PartitionKey,
RowKey,
Name,
Price
}

查询将是这样的

var query = from entity in dataServiceContext.CreateQuery<MyEntity>(tableName)
where entity.Price == 10
select new { entity.Name};

当我需要搜索所有 Price == 10 的实体时,交易是否仅根据返回的结果数进行计数?或者每个实体 (entity.Price == 10) 的检查是否会被计为单独的读取事务,这会导致 50K 事务?

最佳答案

查询本身及其响应将在单个计费事务中(区别于数据库事务)。然而,该响应可能没有您请求的所有行。如果结果集特别大,您将获得一个延续 token 。当您使用继续 token 拉取更多行时,将发生另一笔交易。

关于azure - 查询 Azure 存储表是否始终是 1 个事务?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18346208/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com