
I m willing to understand how do programmers code their script so that a Profile user local data "knows" it has to Sync (or not to Sync) with its replica online ?
i.e. if I have a 100 users connecting to the DB online, what solution is used to decide to have their local data synchronizing with its Online equivalent ?
I had the idea that they probably have to compare the last actualizacion date (of the profile table) on each device at connection time to the one on the server ?
But More precisely, is it possible to sync just the 1 required Field no more...
Example:
If 3 users changed only their phone number localy since last connected time :
- How could I only sync their fone numbers instead of uploading their whole profile data again ?
(name, adress, fone, whatever...)
- Do coders create a "last sync date field" for each field in a profile / compare it to the one in the DB / and then decide if this field needs a Sync ?
... or is there a more Professional way to code such script/need ?
