FirebaseRecyclerAdapter data fetching policy

那年仲夏 提交于 2019-12-12 01:48:14

问题


Does FirebaseRecyclerAdapter load all children at a reference at once, or only upon scrolling. Suppose we have a ref containing thousands of chat messages, are they all going to be fetched from database at once??


回答1:


The FirebaseRecyclerAdapter loads whatever child nodes are matches by the DatabaseReference or Query you pass into it. It does not implement pagination or another form of load-on-demand.



来源:https://stackoverflow.com/questions/43608616/firebaserecycleradapter-data-fetching-policy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!