数据库的巨大文件,如音频和视频 [英] database for huge files like audio and video
问题描述
我的应用程式建立大量档案,每个档案最多可达100MB。目前,我们将这些文件存储在文件系统中工作相当不错。但我想知道是否有一个更好的解决方案来存储文件在某种文件数据库。数据库的简单优点是,如果它可以拆分文件并以小块而不是一个100mb文件存储。
My application creates a large number of files, each up to 100MB. Currently we store these files in the file system which works pretty well. But I am wondering if there is a better solution to store the files in a some kind of file database. The simple advantage with database is if it can split the file and store in small chunks instead of one 100mb file.
推荐答案
系统非常适合存储文件。如果需要将它们与数据库相关联,请按文件名执行。文件系统已经有许多奇特的东西,以确保它是高效的。这可能是最好的,你不要试图超越它。
A file system is perfectly suited for storing files. If you need to associate them with a database, do it by filename. The filesystem already does numerous fancy things to assure it is efficient. It's probably best that you don't try to outsmart it.
这篇关于数据库的巨大文件,如音频和视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!