Skip to content
Advertisement

Tag: pagination

pagination show an extra page

I am currently doing a paging system and I have an error that the “NEXT” button continues to work despite having reached the last page, when clicking this it takes me to an extra page …

Keyset pagination with WHERE & HAVING

I ran into a question that I can’t find a solution yet for keyset pagination: Suppose we have this query: How should we do keyset pagination on that? For a.number only, we can have WHERE a.number < ?; For rating only, we do HAVING rating < ?; If there’re two conditions for where, we can have WHERE (x, y) <

Cursor based pagination for table without a unique and sequential id column?

I’m investigating using cursor-based pagination. I have the following (postgres) table: and had begun to sketch out the pagination query (not tested): I’ve been reading these posts: https://slack.engineering/evolving-api-pagination-at-slack-1c1f644f8e12 https://engineering.mixmax.com/blog/api-paging-built-the-right-way/ https://coderwall.com/p/lkcaag/pagination-you-re-probably-doing-it-wrong which both state that the cursor should be a unique, sequential column to paginate on. However, my table does not have an auto-incrementing sequential primary key. Instead it’s primary key

Advertisement