# Firestore Pagination in Android -- Using FirebaseUI Library 🔥

DevFeed: [Firestore Pagination in Android -- Using FirebaseUI Library 🔥](<https://devfeed.tech/articles/firestore-pagination-in-android-using-firebaseui-library-25723.md>)

Original publisher: [Read original article](<https://blog.shreyaspatil.dev/firestore-pagination-in-android-using-firebaseui-library-1d7fe1a75704/>)

Author: Shreyas Patil

Published: 2019-07-21T13:00:49Z

Content type: tutorial

Language: en

Sources: [Shreyas Patil's Blog](<https://devfeed.tech/sources/shreyas-patil-s-blog.md>)

Topics: [Firestore](<https://devfeed.tech/topics/firestore.md>), [Android](<https://devfeed.tech/topics/android.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [android-library](<https://devfeed.tech/tags/android-library.md>), [android-studio](<https://devfeed.tech/tags/android-studio.md>), [api](<https://devfeed.tech/tags/api.md>), [article](<https://devfeed.tech/tags/article.md>), [firebase](<https://devfeed.tech/tags/firebase.md>), [firestore](<https://devfeed.tech/tags/firestore.md>), [github](<https://devfeed.tech/tags/github.md>), [gradle](<https://devfeed.tech/tags/gradle.md>), [implement](<https://devfeed.tech/tags/implement.md>), [others](<https://devfeed.tech/tags/others.md>), [pagination](<https://devfeed.tech/tags/pagination.md>)

## AI overview

FirebaseUI's FirestorePagingAdapter loads Firestore documents in pages for Android, avoiding the memory and scrolling burden of loading a large list all at once with FirestoreRecyclerAdapter. The excerpt describes configuring Android's Paging Support Library and FirestorePagingOptions, then attaching the adapter to a RecyclerView; its example uses a page size of 10 and says the initial load is 30 items. The query must contain only where clauses: orderBy or pagination clauses cause errors. The adapter is best suited to large, static data sets and does not reflect real-time additions, removals, or changes to items already loaded.

## Source excerpt

Efficiently implement Cloud Firestore pagination in Android using the FirestorePagingAdapter from the FirebaseUI library.