JsonApiDotNetCore
JsonApiDotNetCore copied to clipboard
Optimization: don't fetch count when pagination disabled
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"].