2017-12-24 6 views
0

私はAzureテーブルストレージを使用してバッチのようなことをする必要があります。私は知られているRowKeysとPartitionKeysのリストを持っており、それぞれを検索したいと思います。TableQuery.CombineFiltersのFilterConditionの最大数

バッチGETのように、個々のエンティティを個別に照会するよりも良い方法があるのだろうかと思っていました。 this answer

、提案された解決策があります:

TableQuery<DynamicTableEntity> query = new TableQuery<DynamicTableEntity>() 
    .Where(TableQuery.CombineFilters( 
    TableQuery.GenerateFilterCondition("PartitionKey", 
    QueryComparisons.Equal, "partition1"), 
    TableOperators.And, 
    TableQuery.CombineFilters(
    TableQuery.GenerateFilterCondition("RowKey", QueryComparisons.Equal, "row1"), 
    TableQuery.GenerateFilterCondition("RowKey", QueryComparisons.Equal, "row2")))); 

しかし、別の答えは言及:

There is (or course) a URL length limitation to the query. If you exceed the length, the query will still succeed because the service can not tell that the URL was truncated. In our case, we limited the combined query length to about 2500 characters (URL encoded!) 

は、テーブル、クエリがどのくらい伝える方法はありますか?または提案された回答を使用してテーブルを安全に照会するソリューションですか?

答えて