Skip to content

Android - NativeStorage patch applied - #2355

Open
uzzyDC wants to merge 1 commit into
floccusaddon:developfrom
uzzyDC:test-native-indexeddb
Open

Android - NativeStorage patch applied#2355
uzzyDC wants to merge 1 commit into
floccusaddon:developfrom
uzzyDC:test-native-indexeddb

Conversation

@uzzyDC

@uzzyDC uzzyDC commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Strongly improve android native app sync performance, especially the first sync of a new profile which could fail for medium-big size of bookmarks.

Mods:

  • local android storage replaced with IndexedDB;
  • maintained compatibility with existing data via automatic migration from Preferences;
  • eliminated the passing of massive JSON strings across the Capacitor bridge;
  • retained Preferences solely as a migration source;
  • avoided the introducing SQLite or native code at this stage.

local android storage in  replaced with IndexedDB using Dexie;
maintained compatibility with existing data via automatic migration from Preferences;
eliminated the passing of massive JSON strings across the Capacitor bridge;
retaind Preferences solely as a migration source;
avoided the introducing SQLite or native code at this stage.
@marcelklehr

Copy link
Copy Markdown
Member

Wow. Super easy change set!

@marcelklehr

Copy link
Copy Markdown
Member

@copilot resolve the merge conflicts in this pull request

@marcelklehr

Copy link
Copy Markdown
Member

local android storage replaced with IndexedDB using Dexie

Is this using Dexie at all? It seems to use indexedDB directly?

@uzzyDC

uzzyDC commented Sep 12, 2026

Copy link
Copy Markdown
Contributor Author

local android storage replaced with IndexedDB using Dexie

Is this using Dexie at all? It seems to use indexedDB directly?

Correct, is just indexedDB, no new dependency.

@uzzyDC

uzzyDC commented Sep 12, 2026

Copy link
Copy Markdown
Contributor Author

Next step is to insert separate records for each bookmark in the db, instead of serialize the entire structure. But it will impact more code.

@marcelklehr

Copy link
Copy Markdown
Member

Next step is to insert separate records for each bookmark in the db

See #2357 :) -- I opted to use SQLite for this, rather than indexedDb, because IndexedDB can be dropped by the browser at will, it seems, which wouldn't be nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants