5 ms·
IMHO, user databases (both CouchDB and PouchDB) are just front cache. User can mess with his data in CouchDB/PouchDB using API, so it's important to keep data i
by goohle 5y ago
IMHO, user databases (both CouchDB and PouchDB) are just front cache. User can mess with his data in CouchDB/PouchDB using API, so it's important to keep data in an inner database, inaccessible to user, and copy data between databases. Inner database can be a SQL database, e.g. PG with jsonb.
+--+ +-------+ +-------+ +--+
|PG+<-+->+CouchDB+<-->+PouchDB+<-->+UI|
+--+ | +-------+ +-------+ +--+
|
+->...
|
+->...
[0]: https://kroki.io/ditaa/svg/eNpTUNDW1dVWAAEgAwy0sXG0uRQUagLctW10tXXttJ3zS5MzXJyAPCAnAJkT6lnDpQA1s4YIMyGgBs4Cmq6np4dbAgB3lR-y https://kroki.io/ditaa/svg/eNpTUNDW1dVWAAEgAwy0sXG0uRQUagLct...
- BackBlast 5y agoReally depends on your use case. If that's the user's data anyway, no need to put it in an inner database.