Oddbean new post about | logout

Notes by Jernej Virag :androidHead: | export

 @87c34046 DataStore significantly fixed several SharedPreferences corruption issues for us at Google (but yes, we deployed internal version before it became AndroidX). It was especially important for us because it could do multi-process access safely (which is where most complexity comes from IIRC).

I agree that SQLite is also fine when it comes to integrity, but it's hardly any less complex or comparable. 
 @87c34046 Having said that... I'm honestly not quite sure if DataStore makes sense for most apps in the wild, it doesn't really add all that much over SharedPrefs for applications that store small amounts of data. 
 nostr:npub1enahu3gqaesqjeqg7qc8xkyrt2v3fmld6u0tnwdze36d7s2e4aqqyzgg70 Datastore had data corrupti... 
 @87c34046 DataStore significantly fixed several SharedPreferences corruption issues for us at Google (but yes, we deployed internal version before it became AndroidX). It was especially important for us because it could do multi-process access safely (which is where most complexity comes from IIRC).

I agree that SQLite is also fine when it comes to integrity, but it's hardly any less complex or comparable. 
Event not found
 @87c34046 All the mentioned libraries have a data corruption problem that DataStore is solving though.