阅读背景:

文件系统VS在数据库中的文件保存

来源:互联网 

I'm designing a servlet(or action in Struts2) for file(images, documents, etc...) download. But I'm wondering which is better approach to keep files on File system and in database just keep the path to the file OR to keep the files in the database like BLOBs. I know that when I do query on database where is blobs is slower, but if I keep in database It would me it easier to backup the data and guarantee consistency. Any suggestions?I'm designing a servlet(or action in Struts2) f




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: