CouchDB 的复制数据库是原始数据库的副本还是引用?
CouchDB's replicated DB is a copy or reference to original?
根据http://guide.couchdb.org/draft/replication.html
Replication synchronizes two copies of the same database, allowing
users to have low latency access to data no matter where they are.
These databases can live on the same server or on two different
servers—CouchDB doesn’t make a distinction. If you change one copy of
the database, replication will send these changes to the other copy.
我有以下两个结论:
- 这是否意味着每个复制的数据库都是原始数据库的新 DB/copy 还是指的是原始数据库?
- 复制时会增加数据库的大小吗?
注意:这些混淆是在 PouchDB(移动)到 CouchDB(服务器)交互的上下文中。更准确地说,我想做类似
的事情
也经历过 但没有得到我的答案。
据我所知,复制的数据库不是原始数据库的符号link,而是重复的。
我在 CouchDB github 存储库上发布了同样的问题并得到了答案。
The replicated DB is a new copy. In the most general terms, it takes
all the documents and attachments in the original DB (called the
source) and puts them into a new DB (called the target).
If the replication is a continuous replication, then the source is
also then monitored for any new changes, and, if they are any, those
change are copied to the target as well.
参考:https://github.com/apache/couchdb/issues/1494#issuecomment-410933908
谢谢。
根据http://guide.couchdb.org/draft/replication.html
Replication synchronizes two copies of the same database, allowing users to have low latency access to data no matter where they are. These databases can live on the same server or on two different servers—CouchDB doesn’t make a distinction. If you change one copy of the database, replication will send these changes to the other copy.
我有以下两个结论:
- 这是否意味着每个复制的数据库都是原始数据库的新 DB/copy 还是指的是原始数据库?
- 复制时会增加数据库的大小吗?
注意:这些混淆是在 PouchDB(移动)到 CouchDB(服务器)交互的上下文中。更准确地说,我想做类似
也经历过 但没有得到我的答案。
据我所知,复制的数据库不是原始数据库的符号link,而是重复的。
我在 CouchDB github 存储库上发布了同样的问题并得到了答案。
The replicated DB is a new copy. In the most general terms, it takes all the documents and attachments in the original DB (called the source) and puts them into a new DB (called the target).
If the replication is a continuous replication, then the source is also then monitored for any new changes, and, if they are any, those change are copied to the target as well.
参考:https://github.com/apache/couchdb/issues/1494#issuecomment-410933908
谢谢。