databases/updates.db-wal size increasing every app start

Please provide the following:

  1. SDK Version: 40.0.1
  2. Platforms(Android/iOS/web/all): android
  3. Expo library: asset

Hi,

My users have reported that data storage that the app uses grows over time and I have tracked down the issue to the file databases/updates.db-wal increasing every app start by ~270kB. I assume this is due to reloading an asset on every app startup.

I have some large ~150kB translation json files. These files are included in the application bundle via assetBundlePatterns.

I only load the translation file for the user selected language on app startup using this code:

const [{localUri}] = await Asset.loadAsync(stringsSource[language]);
let json = await readAsStringAsync(localUri!);
let parsed = JSON.parse(json);

I think this code will download the asset on every app startup and then add an update entry in the updates.db-wal. How can I prevent this?

I thought the updates.db-wal should be cleaned up at some point (when it is larger than 4MB?) but it seems to grow even above 8MB.