Skip to content
Discussion options

You must be logged in to vote

My use case is fairly simple: I’d like to build a key-value store with around 10,000 JSON documents, each identified by a UUID. Each entry might also have associated binary attachments (like JPEGs), which I can store in base64 or as binary.

For your use case I would probably use plain IndexedDB and not SQLite. IndexedDB is scorned by many developers and its API is annoying (a wrapper like idb makes it more usable). But as a local key-value store for Javascript objects, ACID and persistent, where you don't need to expose SQL as the query language, it's a great match.

The advantages of plain IndexedDB over SQLite would be:

  • Smaller app size (no WebAssembly)
  • Easier bundling.
  • Direct visibil…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@hyperknot
Comment options

Answer selected by hyperknot
Comment options

You must be logged in to vote
3 replies
@rhashimoto
Comment options

@hyperknot
Comment options

@hyperknot
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants