43 ms·
One of the big advantages (not really used in this sample) is conflict resolution. With a text file, if you make changes on two different devices while one (or
by smarx 13y ago
One of the big advantages (not really used in this sample) is conflict resolution. With a text file, if you make changes on two different devices while one (or both) is offline, you'd end up with a conflict and two versions of the text file.
With datastores, the changes are automatically merged according to developer-specified conflict resolution rules.