invent icon indicating copy to clipboard operation
invent copied to clipboard

localStorage vs indexDB

Open fpliger opened this issue 2 years ago • 1 comments

LocalStorage has size limitations (5mb) and sync, while indexDB doesn't. This is a limitation.. and ideally, it'd be great a solution that can be reliable in time and has limitation or maybe support different backends.

This is just a quick pin to make sure we have this discussion about this when time is good.

fpliger avatar Apr 11 '23 14:04 fpliger

A third option could be SQLite but time is probably not quite right https://developer.chrome.com/blog/sqlite-wasm-in-the-browser-backed-by-the-origin-private-file-system/ however, what we could consider at the very beginning, even if we're using localStorage, is to wrap its API in a way that makes it async so that no matter what solution we'll adopt in the future, there won't be any need for changes around such API.

Happy to provide PoC around such API once the time is right.

WebReflection avatar Apr 12 '23 08:04 WebReflection