ngx-pagination 对 firestore 集合是否有效?

Is ngx-pagination efficient with firestore collection?

我在 Angular+Firestore 应用程序 Web 中工作,我最近需要对 Firestore 中的集合中的一些文档进行分页。我使用 ngx-pagination 并且效果很好。我在客户端使用它,而不是在服务器中使用它。

我的问题是我的实际集合很短,但如果有一个很大(非常大),ngx-pagination 是否会继续有效地对 Firestore 集合进行分页?

一个更精确的问题:ngx-pagination 是从 firestore 集合加载所有数据还是对其进行分页以在必要时显示?

谢谢。

除非您正在执行服务器端分页,否则 ngx-pagination 将始终从集合中加载整个数据。如果您希望数据增加很多,我建议您实现上述任一服务器端分页 here, or implement the data pagination mentioned in the Firebase documentation