r/SpringBoot • u/Excellent_Trifle_630 • Sep 13 '26
Question Pagination in Springboot
If you're ar working on springboot project in you company/job. How does your team do pagination in your project as they have large datasets. I am currently learning springboot and curious to know how it's done withel large datasets.
55
Upvotes
View all comments
Show parent comment
7
u/FalseDish Sep 13 '26
This is the best answer.
Still, I would say that offset-based pagination has poor performance on large datasets - need to scan and count preceding rows.
Keyset pagination is size-agnostic, though not particularly pleasurable to work with.
I’ve become increasingly disenchanted with the framework. OOB pagination in Quarkus for e.g is easily 2-3x faster.
Or maybe I’m becoming biased, now that Broadcom has purchased VMware and has the project. Their "stewardship" is turning the framework into bloatware.