Skip to content

Pagy is counting over my warehouse table and is taking too long #566

Closed Answered by benkoshy
titanve asked this question in Q&A
Discussion options

You must be logged in to vote

Do you need a full nav bar? If not: https://ddnexus.github.io/pagy/docs/api/countless/ - this doesn't use the count query BUT you won't be able to jump to page 88 etc. because pagy will not know if such a page exists.

Or the other way is cursor based pagination: https://github.com/Uysim/pagy-cursor (I haven't used this library though).

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@titanve
Comment options

@benkoshy
Comment options

Answer selected by ddnexus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants