本文介绍了FirebaseRecyclerAdapter数据获取策略的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
FirebaseRecyclerAdapter是否一次或仅在滚动时一次加载所有子项.假设我们有一个包含数千个聊天消息的引用,它们是否都将立即从数据库中获取?
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??
推荐答案
FirebaseRecyclerAdapter
加载您传入的DatabaseReference
或Query
匹配的所有子节点.它没有实现分页或其他形式的按需加载.
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.
这篇关于FirebaseRecyclerAdapter数据获取策略的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!