News for hackers. Stuff that matters.
Re:Offline-First Database Comparison by goohle on Tuesday October 26, 2021 @12:17PM (#29002285)
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/eNpTUNDW1dVWAAEgAwy0sXG0uRQUagLct...
Re:Offline-First Database Comparison by BackBlast on Wednesday October 27, 2021 @12:42PM (#29015710)
Really depends on your use case. If that's the user's data anyway, no need to put it in an inner database.