简体   繁体   English

ngx-pagination 对 firestore 收集有效吗?

[英]Is ngx-pagination efficient with firestore collection?

I'm working in a Angular+Firestore application web and I recently have required to paginate some documents from a collection in Firestore.我在 Angular+Firestore 应用程序 web 中工作,我最近需要对 Firestore 中的集合中的一些文档进行分页。 I use ngx-pagination and it works well.我使用 ngx-pagination 并且效果很好。 I use it in client, not in server.我在客户端使用它,而不是在服务器中。

My question is that my actual collection is short, but if a had one large (very large), will ngx-pagination continue being efficient to paginate Firestore collection?我的问题是我的实际集合很短,但是如果一个很大(非常大),ngx-pagination 会继续有效地对 Firestore 集合进行分页吗?

A more precise question: ngx-pagination load all the data from a firestore collection or it paginate it to show when necessary?一个更精确的问题:ngx-pagination 加载来自 firestore 集合的所有数据,还是在必要时对其进行分页显示?

Thanks.谢谢。

Unless you are doing server-side pagination, ngx-pagination will always load the whole data from the collection.除非您正在执行服务器端分页,否则 ngx-pagination 将始终从集合中加载整个数据。 If you expect the data to increase a lot, I would recommend you to implement either server-side pagination as mentioned here , or implement the data pagination mentioned in the Firebase documentation如果您预计数据会增加很多,我建议您实现这里提到的服务器端分页,或者实现Firebase 文档中提到的数据分页

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM