Skip to content

Commit

Permalink
no longer recread feedRange for queries unless using prefix pk
Browse files Browse the repository at this point in the history
  • Loading branch information
NaluTripician committed Mar 3, 2023
1 parent db06f92 commit c098777
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ internal static async Task<FeedRange> ResolveFeedRangeBasedOnPrefixContainerAsyn
if (partitionKeyDefinition != null && partitionKeyDefinition.Kind == PartitionKind.MultiHash)
{
return feedRangePartitionKey.PartitionKey.InternalKey?.Components?.Count >= partitionKeyDefinition.Paths?.Count
? new FeedRangePartitionKey(feedRangePartitionKey.PartitionKey)
? feedRange
: new FeedRangeEpk(feedRangePartitionKey.PartitionKey.InternalKey.GetEPKRangeForPrefixPartitionKey(partitionKeyDefinition));
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public async Task MultiHashReadManyTest()
.Build();

itemList.Add((document.Id, pKey));
incompleteList.Add((document.Id, badPKey));
incompleteList.Add((document.Id, badPKey));
}

FeedResponse<Document> feedResponse = await this.container.ReadManyItemsAsync<Document>(itemList);
Expand Down

0 comments on commit c098777

Please sign in to comment.