top | item 34354435

(no title)

wargames | 3 years ago

I haven't used IndexedDB in a while.. but my recollection is that it is basically SQLite. Not sure I see the advantage of this above and beyond what IndexedDB is already providing. What are the pros and cons of each approach?

discuss

order

AndrewSChapman|3 years ago

IndexDb is not a relational data store. It's much closer to Mongo than it it to Sqlite.

If you want relational tables, joins, aggregations etc, you want something like this (or the original Web SQL that was deprecated).

There is definitely a use case for it.

mr_toad|3 years ago

> It's much closer to Mongo than it it to Sqlite.

If only. It’s much closer to DBM than it is to Mongo.

azangru|3 years ago

> but my recollection is that it is basically SQLite.

SQLite, which has a SQL database engine, is, by definition, a relational database. IndexedDB is a non-relational, or noSQL, database. One can't be basically the same as the other :-)

simonw|3 years ago

One is a key value store, the other is a full relational database.

Think Redis vs PostgreSQL.