Is there a way to replicate all Databases from CouchDB in one time?
Example : I have multiple DBs
Each DB contains multiples unique documents, and instead of replicate each DB independently I would like to replicate all of them.
Furthermore, I saw that CouchDB 2.0 allow DB replication, even if you do not have admin access, is that normal ?
Best regards Sim
It might make sense to put all document types into the same database, so you can replicate all documents at once. It's common practice to use a property type
to differentiate between different types:
{
"_id": "org.couchdb.user:bob",
"type": "user",
"name": "bob"
},
{
"_id": "article.2017-12-16T15:30:00.000Z",
"type": "article",
"title": "About Replication",
"text": "Replication rocks!"
}
You can then use a Mango query to get all documents of a certain type.
该方法可以是每个用户一个数据库,并通过内部复制创建熟练的数据库管理器,并从所有数据库用户中按类型进行过滤
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.