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
3
u/j-an Sep 13 '26
Can you give your rough estimate at what point a data set is considered large?
How I see it you can use a List/slice, if you don't need to know the total size of your data set. Do you need to go over the entire dataset anyways, as soon as you have some filtering with it? I guess a good index would be the first thing to improve the query.