In my use case, the data is only written by client, not by server.
But I would like to use Cloud Functions on the server, whenever a change is made on the client.
What I would like to avoid is to re-download the data from the server if it's already locally stored.
I found out is it possible to enable disk persistance:
FirebaseDatabase.getInstance().setPersistenceEnabled(true);
Can anyone explain if this actually prevents re-downloading data in case it's already locally stored, or the data would periodically re-downloaded anyway?
Generally speaking, which is the criteria by which the data is re-downloaded? Is there a sort of hashcode check between client and server data to find out if the data has changed?