Firestore offline data: Merging writes, maximum time of offline persistence

前端 未结 2 1324
無奈伤痛
無奈伤痛 2020-12-15 05:36

https://firebase.google.com/docs/firestore/manage-data/enable-offline

How does Firestore work with offline data?

  1. How are writes merged by many clien

2条回答
  •  独厮守ぢ
    2020-12-15 06:02

    I guess the documentation has most of your answers. link

    1. Writes are managed based on time stamps.
    2. As you specified, you are interested in web Firebase client. In that case I guess you may not have access to offline data after browser restarts. If that is not the case, Firebase should be able to manage the writes. I didn't find any specific time limit. However, documentation says

    Firebase applications work even if your app temporarily loses its network connection. In addition, Firebase provides tools for persisting data locally, managing presence, and handling latency.

    that means the data persistence is certainly for a limited time period.

    1. Yes, if there are too many operations, system will have greater load syncing all the writes to the cloud.

    Hope this helps. Please also refer to this link.

提交回复
热议问题