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

refactor(psql_pagination.go): optimize pagination info using Count with Limit(1) #54

Merged

Conversation

jorgepurposeinplay
Copy link
Contributor

Optimizes obtaining the page info. A Count of all the items could be expensive. This version uses Count with a Limit of 1.

@jorgepurposeinplay
Copy link
Contributor Author

Updated to replace COUNT with the existence check.

@bradub bradub closed this Jan 4, 2024
@bradub bradub reopened this Jan 4, 2024
@bradub bradub merged commit c29f035 into purposeinplay:main Jan 4, 2024
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants