Generic Paged DB Accumulator

One reusable helper that reads an entire table through a (limit, offset) data-access function in a bounded loop, stopping on the first short page — plus when reading everything is legitimate (export, backup, bulk mapping) and the smell that means you needed a real query instead. Use when several repositories each hand-roll the same paging loop, or when a "read all" call gets slower than linearly as the table grows.

maxrave-dev 793d27b 6.3 KB Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/generic-paged-db-accumulator commit 793d27bee6

Frequently asked questions

npx skillmds@latest add maxrave-dev/generic-paged-db-accumulator