Using a file system instead of a database to store pdf files in jackrabbit

In our project, we use jackrabbit with spring and tomcat to manage PDF files.

Currently, the MySql database is used to store blob files (in terms of jackrabbit, which he called the BundleDbPersistenceManager).

As the number of generated files grows, we thought of using a file system instead of a database to improve performance and eliminate replication overhead. In spec , the jackrabbit command recommends using the BundleFsPersistenceManager instead, but with comments like this

Not intended for use in production environments (other than read-only use)

Does anyone have experience using BundleFsPersistenceManager and can reference any painless migration resources from blob in mysql database to files in the file system?

Thank you in advance

+8
java jcr jackrabbit
source share
1 answer

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

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

I would recommend not using the BundleFsPersistenceManager, because the data can get corrupted quite easily if the program gets killed while recording.

+2
source share

All Articles