Store the Firefox Suggest database in the caches directory in Firefox for Android
Categories
(Firefox for Android :: Search, enhancement)
Tracking
()
People
(Reporter: lina, Assigned: ttran, Mentored)
References
(Blocks 1 open bug)
Details
(Whiteboard: [disco])
Attachments
(1 file)
FxSuggestStorage stores the Suggest SQLite database in the databases directory on Android, here: https://github.com/mozilla-mobile/firefox-android/blob/a0ad27d3695a8b051e43272d2bbc0a29c505ba2b/android-components/components/feature/fxsuggest/src/main/java/mozilla/components/feature/fxsuggest/FxSuggestStorage.kt#L28
Unlike our other databases, though, the Suggest database doesn't contain user data, and is safe to throw away and re-create if the device runs low on disk space. I think the caches directory would be a perfect place to store it instead.
Desktop and iOS already store the Suggest database in the caches directory, too, but Android is the odd one out. Let's fix that.
| Reporter | ||
Updated•2 years ago
|
Updated•2 years ago
|
Comment 1•2 years ago
|
||
Comment 2•2 years ago
|
||
Authored by https://github.com/tiftran
https://github.com/mozilla-mobile/firefox-android/commit/fcd5f4eefcc952cc7f3e247e1af48384f5718749
[main] Bug 1858297 - Store FxSuggest db in cache directory
Updated•2 years ago
|
| Reporter | ||
Updated•2 years ago
|
Description
•