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
2
u/Just_LeonS Sep 13 '26
My source (enable subtitles, I guess)
postgres:
slice:
~800 ms per page for ordered query ~1000th page of very plain three-simple-fields-entity.
~50 ms for unordered slice
~20 ms constant-ish for ordered keyset pagination for any of 1 ~ 9000 pages