擅长:python、mysql、java
<p>我认为您应该使用多线程实现,因为它包含多个<strong>点查询</strong>。在单个查询中执行all-in-single查询可能会导致<strong>表扫描</strong>。正如<a href="https://docs.microsoft.com/en-us/azure/cosmos-db/table-storage-design-guide" rel="nofollow noreferrer">official doc</a>提到的:</p>
<blockquote>
<p>Using an "<strong>or</strong>" to specify a filter based on <strong>RowKey</strong> values results in a partition scan and is not treated as a range query. Therefore, you should avoid queries that use filters such as: $filter=PartitionKey eq 'Sales' and (RowKey eq '121' or RowKey eq '322')</p>
</blockquote>
<p>您可能认为上面的示例是两个<strong>点查询</strong>,但实际上它会导致一个<strong>分区扫描</strong>。在</p>