Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sqlPaginate always adds total aggregation even if it's not even used #426

Closed
EloB opened this issue Oct 27, 2020 · 2 comments
Closed

sqlPaginate always adds total aggregation even if it's not even used #426

EloB opened this issue Oct 27, 2020 · 2 comments
Labels

Comments

@EloB
Copy link

EloB commented Oct 27, 2020

I'm not sure if I do something wrong but my queries always include "$total" (when sqlPaginate: true see below) even if I don't use either total or in my case totalCount or pageInfo in my graphql query. It would be amazing if it was only included when needed.

SELECT "mytable".*, count(*) OVER () AS "$total"

Is this intended?

@nicoabie
Copy link
Contributor

nicoabie commented May 5, 2024

@nicoabie
Copy link
Contributor

https://join-monster.readthedocs.io/en/latest/pagination/ offset pagination needs to calculate the total

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants