couchdb - PouchDB how to check if localDB is up-to-date with remoteDB -
how check if localdb up-to-date remotedb? if use .info() on both update_seq never same after synced already. there values can compare, see if i'm up-to-date?
// local info adapter: "websql" auto_compaction: true db_name: "mydbname1" doc_count: 1771 sqlite_plugin: false update_seq: 1781 websql_encoding: "utf-8" // remote info adapter: "http" auto_compaction: false committed_update_seq: 1790 compact_running: false data_size: 2593483 db_name: "mydbname" disk_format_version: 6 disk_size: 4292727 doc_count: 1771 doc_del_count: 0 host: "http://something.com" instance_start_time: "1443599117360300" purge_seq: 0 update_seq: 1790
when doing live+retry replication, 'paused'
event occur without error if database sync up-to-date. can single-shot replication , resolve promise when replication complete (which means if it's done).
the seqs , infos between 2 databases cannot compared figure out 1 date another.
Comments
Post a Comment