Skip to content

feat: add pageWithoutCount to skip COUNT(*) queries#5

Merged
DevNico merged 1 commit into
DevNico:mainfrom
toonketels:page-without-count
Feb 18, 2026
Merged

feat: add pageWithoutCount to skip COUNT(*) queries#5
DevNico merged 1 commit into
DevNico:mainfrom
toonketels:page-without-count

Conversation

@toonketels
Copy link
Copy Markdown
Contributor

Introduces PaginatedResultWithoutCount[T] and a pageWithoutCount method on Seeker, SlickSeeker, and SlickPgTupleSeeker. This allows paginating without the overhead of a total count query, which can be expensive on large tables.

The existing page() method is refactored to delegate to pageWithoutCount and attach the count separately. Cursors are fully interoperable between both methods.Conversion helpers withCount and withoutCount allow moving between result types.

Introduces PaginatedResultWithoutCount[T] and a pageWithoutCount method on Seeker, SlickSeeker, and SlickPgTupleSeeker. This allows paginating without the overhead of a total count query, which can be expensive on large tables.

The existing page() method is refactored to delegate to pageWithoutCount and attach the count separately. Cursors are fully interoperable between both methods.Conversion helpers withCount and withoutCount allow moving between result types.
@DevNico DevNico merged commit 84c431d into DevNico:main Feb 18, 2026
10 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.

2 participants