0

I'm looking to incrementally copy data from a CouchDB to another database without copying my own bookkeeping document into the source database. Normally the replication target writes a the 'story so far' document to the source database to avoid replicating from 0 the next time around.

Is there a way to tell whether the source database is the same, perhaps by checking a per-database UUID, without writing my own target identifier to the source database? I've noticed that in CouchDB 2.0 the database itself no longer advertises a uuid on /.

joeforker
  • 40,459
  • 37
  • 151
  • 246
  • 1
    Are you asking about DBs, or nodes? The Couch 1.x uuid on / was per-node, not per DB. The closest I'm aware of in 2.x is the node name. – Jonathan Hall Apr 02 '17 at 23:48
  • It would be nice if it was per-db, to catch a deleted/remade database. How does one read the node name? – joeforker Apr 04 '17 at 17:27

0 Answers0