gpt4 book ai didi

java - 这与 firestore 读取请求有关。 Firestore 在 Android 应用程序中实现

转载 作者:行者123 更新时间:2023-12-01 17:14:49 25 4
gpt4 key购买 nike

这与 Firestore 读取请求有关。 Firestore 在 Android 应用程序中实现。使用 Firestore 并禁用持久性。 (离线缓存不起作用)Firestore 是否仍在与 Firestore 服务器同步?同步的频率是多少?有什么方法可以禁用同步吗?

最佳答案

Using Firestore with persistence disabled (offline cache not working) are still Firestore syncing working with Firestore server?

如果您禁用离线持久性,则意味着您将不再拥有 Cloud Firestore 数据库的本地副本,并且在设备离线时将无法访问数据。在线时,一切都会正常工作。

What frequency of syncing?

仅当您重新获得连接时,您才能再次同步数据。

Any way to disable syncing?

如果您没有本地缓存​​并且想要禁用与 Firestore 服务器的同步,那么首先使用 Firestore 有什么好处?在我看来,您应该使用 Firestore 来实现实时功能。请记住,Firestore 被设计为一个在线数据库,可以在短到中度断开连接的情况下工作。

关于java - 这与 firestore 读取请求有关。 Firestore 在 Android 应用程序中实现,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61404483/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com