IEvangelist / azure-cosmos-dotnet-repository

Wraps the .NET SDK for Azure Cosmos DB abstracting away the complexity, exposing a simple CRUD-based repository pattern
https://ievangelist.github.io/azure-cosmos-dotnet-repository
MIT License
300 stars 89 forks source link

QueryAsync Count Charge Not Reported #426

Open aluitink opened 5 months ago

aluitink commented 5 months ago

Describe the bug QueryAsync performs a Count but does log or include the additional RUs Charged in the result.

To Reproduce Create a Type/Repository/OffsetByPageNumberSpecification Add a lot of items to the repository Perform a low RU query

Expected behavior All RUs consumed will be reported.

Actual behavior Only RUs from the query spec are reported.

Environment summary SDK Version: IEvangelist.Azure.CosmosRepository - 8.1.4 / Microsoft.Azure.Cosmos - 3.38.0 OS Version: Windows

IEvangelist commented 5 months ago

Hi @aluitink - thanks for reporting this. Would you be interested in providing a PR to address the issue?