I am using Firestore to store my data. Now I want to fetch perticular collection from it. I am using FirestorePagingAdapter
to do this.
Scenario: I am querying Firestore to fetch all documents from perticular collection, lets say posts(collection)
contain 100 documents, and FirestorePagingAdapter
configured as below
-setPrefetchDistance(2)
-setInitialLoadSizeHint(10)
-setPageSize(10)
Now my doubt is will FirestorePagingAdapter
fetch all documents at once (means all 100 doc once) then then apply paging or query Firestore according to page size (10 at a time), and when reaches to bottom, will fetch next 10 doc?
Basically I want to reduce read operations in Firestore.
Please help me here.