plone中是否存在与修订数量一样多的副本? [英] Do as many copies as the number of revisions exist for a file in plone?

查看:100
本文介绍了plone中是否存在与修订数量一样多的副本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在plone中,如果将文件(或任何内容)进行4次修订,则存在多少个物理副本?我正在使用plone 4.1,其中文件和图像存储在文件系统中.

In plone, how many physical copies of a file (or any content) exist if it is revised say 4 times? I am using plone 4.1 wherein the files and images are stored on the file system.

推荐答案

内容对象由多个持久记录组成.对于包含文件系统上二进制blob文件的图像和文件.

Content objects consist of multiple persistent records. For images and files that includes the binary blob file on the file system.

更改内容对象时,仅 受更改影响的永久记录将作为事务的一部分写入.那时还没有清除较旧的记录,所以可以得到多个副本.

When a content object is changed, only the persistent records that are affected by the change are written as part of the transaction. Older records are not cleared at that moment, so you do get multiple copies, yes.

因此,每次更改文件或图像的 binary 内容时,都会使用该新数据创建一个新副本,并保留旧版本.但是,如果您仅更改标题或发布日期,则blob文件没有被更改,您将不会获得原本不会更改的数据的额外副本.

So each time you change the binary content of a file or an image, a new copy is created with that new data, and the old version is retained. If, however, you only change the title, or the publication date, the blob file is untouched, you won't end up with an extra copy of otherwise unchanged data.

您使用 ZODB包装删除旧交易数据.请注意,通过打包,您还可以撤消撤消已被打包删除了旧状态的更改的功能.

You use ZODB packing to remove old transaction data. Note that by packing, you also remove the ability to undo changes for which the old state has been removed by a pack.

这篇关于plone中是否存在与修订数量一样多的副本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆