且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用文件系统而不是数据库来存储jackrabbit中的pdf文件

更新时间:2023-01-22 11:45:54

Jackrabbit中的持久性有点复杂,读起来很有意义首先配置概述文档

Persistence in Jackrabbit is a bit complicated, it makes sense to read the configuration overview documentation first.

在Jackrabbit中,二进制文件通过defa存储在数据存储中ult,而不是持久性管理器。即使您使用 BundleDbPersistenceManager ,大型二进制文件也会存储在数据存储中。您可以将(默认) FileDataStore BundleDbPersistenceManager 组合。

In Jackrabbit, binaries are stored in the data store by default, and not in the persistence manager. Even if you use the BundleDbPersistenceManager, large binary files are stored in the data store. You can combine the (default) FileDataStore with the BundleDbPersistenceManager.

我建议使用BundleFsPersistenceManager,因为如果程序在写入时被杀死,数据很容易被破坏。

I would recommended to not use the BundleFsPersistenceManager, because data can get corrupt quite easily if the program gets killed while writing.