What's the most efficient approach for implementing a ListView to display a collection with thousands of entries?

Database & APIs

Hi,

I have a collection with thousands of entries and need to show those entries using a listview.

What should be the best approach to do this?

Initially, I configured the simple backed query but it gets all the results at once, and I would like to avoid this behaviour. Ideally, I would like to have a pagination in place and get a list of 50 results on each page, performing a new query each time the user changes the page.

Thanks a lot in advance.

What have you tried so far?

I put in place a pagination system but it is only a visual effect. the widget already obtains all rows from firebase, which could take seconds once the amount of documents goes up to hundreds.

Did you check FlutterFlow's Documentation for this topic?
No
1
1 reply