json-api-dotnet/JsonApiDotNetCore

Optimization: don't fetch count when pagination disabled

Opened this issue · 0 comments

When options.IncludeTotalResourceCount is set to true and pagination is disabled, there's no need to fetch the total count upfront. We can simply count the number of resources returned to set meta["total"].