2017-12-24 17 views
0

Azure 테이블 스토리지를 사용하여 배치와 같은 작업을 수행해야합니다. 나는 알려진 RowKeys와 PartitionKeys의리스트를 가지고 있으며 각각을 검색하고 싶다.TableQuery.CombineFilters의 FilterCondition의 최대 수

일괄 처리와 같이 각 엔티티에 개별적으로 쿼리하는 것보다 나은 방법이 있는지 궁금합니다. 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!) 

테이블 쿼리가 얼마나 알 수있는 방법이 있나요? 또는 제안 된 답변을 사용하여 테이블을 안전하게 쿼리 할 수있는 솔루션입니까?

답변