Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requesting answers to 2 synchronized database (replicate) questions,thank you! #8835

Open
jim555666888 opened this issue Nov 27, 2023 · 0 comments

Comments

@jim555666888
Copy link

jim555666888 commented Nov 27, 2023

Issue

I will copy the local couchdb unidirectionally to the remote couchdb, and the code in nodejs is as follows:

localDB.replicate.to (remoteDB, {
    Live: true,
    Retry: true,
    Deleted: 'always',
    Backoff: 120000
})

I have two questions to ask:

  1. When I delete a document in LocalDB, in most cases, remoteDB will also synchronize the deletion of the document, but sometimes, certain documents still remain on remoteDB and cannot be synchronized for deletion. I tried using the console ( http://ip:5984/_utils/#) to delete from the document list and prompt for failure, but there is no log of the failure. After entering the document, deleting it again is normal. Why is this happening?

  2. On LocalDB, if the same document is modified at short intervals (such as within 5ms), only earlier modified documents will be synchronized to remoteDB, and later modified documents will be ignored. But in reality, it should be synchronizing documents later. How can I synchronize documents that were modified later to remoteDB? Or, regardless of the time, it should be able to synchronize to remoteDB

Looking forward to your reply. Thank you very much!

Info

  • Environment: (Node.js + "pouchdb": "8.0.1")
  • Adapter: (default)
  • Server: (CouchDB 3.3.1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant