apache / apache/pouchdb

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

Open
#8,835 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
17.6k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

### 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)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.