You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用Azure.Data.Tables时事务中的最大项数是多少?

Azure.Data.Tables SubmitTransactionAsync 单事务项数上限

针对你给出的批量删除代码示例:

var transactionActions = new List<TableTransactionAction>();

foreach (var row in items)
{
    transactionActions.Add(new TableTransactionAction(TableTransactionActionType.Delete, row));
}

table.SubmitTransactionAsync(transactionActions).Wait();

调用SubmitTransactionAsync时,单事务内的TableTransactionAction项数上限是100。

这个限制继承自Azure Table服务本身的约束,和旧版SDK的批量操作限制一致,即使新版Azure.Data.Tables文档未明确标注,该规则依然生效。另外需要注意,事务内的所有操作必须针对同一个分区键,这是Table事务的硬性要求,超出数量或跨分区都会触发异常。

内容的提问来源于stack exchange,提问作者Martin Staufcik

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.01 14:20:54