Pagination logic comes in two forms.
- Data access
- Presentation
If a DB is only capable of loading 1000 rows at a time you must not exceed that. But if your display can only handle 12 at a time...
What you need to do is express the paging requirements from where they each originate and accept that they don't all originate in one place.
Don’t assume the 12 row limitation of your presentation will protect the DB. Presentations change.