Storage of large files in Databases

Source: Internet
Author: User

Storage of large files in Databases

There are two common solutions to manage large-sized files with relational databases:
Solution 1: When BLOB fields are used, the disadvantage is poor performance. The backup of BLOB fields is also a problem.
Solution 2: files are still managed by the operating system, and the database only stores file paths as indexes. You need to maintain synchronization independently.

Microsoft has issued a research report and conducted a comparative test on SQL Server 2005 and NTFS file systems. The impact of File Size on performance is less than 256 kb and blob is good, it is better to use a file system for storage larger than 1 MB.

Regarding solution 2, database vendors also provide support on the Database End, which can be seen as the third solution:
ORACLE: Use the bfile data type. For bfile usage, see application developer's Guide-large objects (lobs) in the Oracle official document.
SQL Server 2008: Use the varbinary (max) type with the filestream option.

Oracle does not know which version to start to support bfile. I have certainly supported oracle9.2 In the experiment. sqlserver2005 does not support the filestream option of varbinary (max.

Reference

Oracle lob Introduction

Use large objects in. net

Getting traction with SQL Server 2008 filestream

To blob or not to BLOB: Large Object Storage in a database or a filesystem?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.