如何以及为何设置 plone.app.blob 的布局类型(草坪与灌木丛)
可能的重复:
各种 ZODB blob 存储布局之间有什么区别?< /a>
我有一个 Plone 3.3.5 站点,我正在将其迁移到 plone.app.blob。我刚刚运行了测试迁移,注意到所有 blob 文件都存储在 var/blobstorage 中的同一目录中。
在列表服务器上,我听说它提到可以在两种布局之间进行选择:“草坪”和“灌木丛”。 Lawn 似乎是默认设置,所有文件都位于一个单一的平面目录中,而“bushy”则将它们组织到子文件夹中。
是否有一种扩展选项可以打开茂密的布局? (我找不到任何这样的例子。)
每个布局选项的优点是什么?
Possible Duplicate:
What is the difference between the various ZODB blobstorage layouts?
I have a Plone 3.3.5 site that I'm migrating to plone.app.blob. I just ran a test-migration and noticed that all the blob files get stored in the same directory in var/blobstorage.
On the listservs I've heard it mentioned that it's possible to select between two layouts: "lawn" and "bushy". Lawn appears to be the default, with all files in a single, flat directory, while "bushy" organizes them into subfolders.
Is there a buildout option by which one can turn on the bushy layout? (I've not been able to find any examples of this.)
What are the strengths of each layout option?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
差异的解释如下:各种 ZODB blob 存储布局?。
你不需要担心这个;
lawn
只是为了向后兼容。如果您确实有
lawn
布局 blobstorage(如果这样做,您将在日志中收到警告)并希望迁移到bushy
布局,请使用 migrateblobs 脚本;以下是创建脚本的构建部分:关闭所有实例和 ZEO 服务器,备份 Blob 存储并在 Blobstorage 目录中运行脚本:
var/blobstorage
已迁移为使用 <代码>浓密布局。The difference is explained in: What is the difference between the various ZODB blobstorage layouts?.
You don't need to worry about this;
lawn
is there only for backwards compatibility.If you do have a
lawn
layout blobstorage (you'll get a warning in the log if you do) and want to migrate to abushy
layout, use the migrateblobs script; here is a buildout part to create the script:Shut down any instances and ZEO servers, back up your blob storage and run the script on your blobstorage directory:
var/blobstorage
has then been migrated to use thebushy
layout.