English 中文(简体)
复制邮袋 亚洲开发银行与当地邮袋相比减少了规模——原因何在?
原标题:Replicating CouchDB to local couch reduces size - why?

最近,我开始使用库什从事一米工作。

I database with 7907 documents, and wanted to rename the database. I poked around for a bit, but couldn t figure out how to rename it, so I figured I would just replicate it to a local database of the name I wanted.

我第一次尝试了复制失败,我认为这一错误是空洞。 我再一次尝试,而且工作非常快,令人不安。

在复制后,Im显示新数据库有正确的记录,但数据库规模约为原始数据的三分之一。

还有一点奇怪的是,如果我重新找回了葬礼,原来的面积在94.6至95.5平方米之间浮动。

下面我要谈谈几个问题:

  1. 第2数据库是否储存了第1条的参考资料? 如果是的话,我是否可以删除第一起,而不造成伤害?

  2. 为什么规模如此不同? 原始建筑指数是否最终会变?

  3. Why is the size fluctuating?

<><>>:>

可能有助于:

  • This is on a cloudant couchdb install
  • I checked the first and last record of the new db, and they match, so I don t believe futon is underreporting.
最佳回答

复制到一个新的数据库类似于契约。 两者都涉及某些副作用(明显和有意地分别涉及),以减少新的<代码>.co文档的规模。

  • The b-tree indexes get balanced
  • Data from old document revisions is discarded.
  • Metadata from previous updates to the DB is discarded.

复制品储存到/从检查站,这样,如果你从同一来源复制到同一地点(即重新复制时间缩短),就将搬离。

答复:

  1. Replication does not create a reference to another database. You can delete the first without causing harm.
  2. Replicating (and compacting) generally reduces disk usage. If you have any views in any design documents, those will re-build when you first query them. View indexes use their own .view file which also consumes space.
  3. I am not sure why the size is fluctuating. Browser and proxy caches are the bane of CouchDB (and web) development. But perhaps it is also a result of internal Cloudant behavior (for example, different nodes in the cluster reporting slightly different sizes).
问题回答

暂无回答




相关问题
SQL Server Replication, Consolidation

How do I consolidate multiple publications into 1 consolidated table on the subscriber? For example. Consider a very simple sales model where we replicate sales data from the stores to the central ...

SQL Server 2008 Replication (avoiding reinitialization)

I m trying to determine if there s a better way to handle replication than the way we re currently doing things. We re essentially trying to determine 2 things: Is there any way to add an ...

Sql Server 2005 Replication

I am developing a web portal in Asp.Net. Primary target users will be of India Only. But in future I may target overseas users also. I want to know if I should use Sql Server Replication or not. ...

non-replicated column still trigger replication

I have a few columns in a table that are added to my publication articles. When a change on a column that is not included in replication occurs, it still seems to update the msrepl_tran_version which ...

Synchronizing intranet and web data

I am just getting started breaking a .NET application and its SQL Server database into two systems - an intranet and a public website. The various database tables will need to be synchronised between ...

SQL Server 2005/8 Replication Transaction ID

I have a scenario where I m using transactional replication to replicate multiple SQL Server 2005 databases (same instance) into a single remote database (different instance on a separate physical ...

SQL Server Replication (cross-database queries & constraints)

We want to replicate data from one database to several others (on another server). Would it make sense to replicate these tables to a shared database on the other server and have our cross-database ...

热门标签