JsonApiDotNetCore icon indicating copy to clipboard operation
JsonApiDotNetCore copied to clipboard

Optimization: don't fetch count when pagination disabled

Open bkoelman opened this issue 4 months ago • 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"].

bkoelman avatar Aug 03 '25 17:08 bkoelman