TriPSs/nestjs-query

Lookahead `totalCount` and don't fetch if not requested

Closed this issue · 1 comments

TriPSs commented

Is your feature request related to a problem? Please describe.
Some calls take additional time to count the amount of records even when the totalCount field is not fetched.

Have you read the Contributing Guidelines?

(Write your answer here.)

Describe the solution you'd like
Use #70 to lookahead and don't run the count query.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Now some queries take additional time to count the records even when the field is not retrieved causing additional latency.

TriPSs commented

This is already implemented.