【发布时间】:2025-12-04 21:25:01
【问题描述】:
当我们通过QueryRequestOptions使用partitionkey进行查询时,是否有任何Partition key not found异常?或者有没有其他方法可以通知我查询中不存在逻辑分区?
【问题讨论】:
-
or is there any other ways I can be notified that the logical partition does not exist in a query?- 如果查询不包含分区键,您想收到通知,还是根据您提供的分区键值在没有数据时收到通知? -
如果有逻辑分区不存在,我想得到通知。比如我用 QueryRequestOptions queryRequestOptions = new QueryRequestOptions() { PartitionKey = "newPartition that doesn't exist in container"}; 指定查询,可以用分区键不存在抛出吗?
标签: azure-cosmosdb azure-cosmosdb-sqlapi