Skip to main content
QUICK REVIEW

[Paper Review] To BLOB or Not To BLOB: Large Object Storage in a Database or a Filesystem?

Russell Sears, Catharine van Ingen|arXiv (Cornell University)|Jan 26, 2007
Advanced Data Storage TechnologiesComputer Science10 references74 citations
TL;DR

This paper investigates the trade-offs between storing large objects in databases (as BLOBs) versus filesystems, focusing on long-term operational performance and manageability. Using 'storage age'—a normalized metric for object overwrites—it finds that objects under 256KB perform best in databases, those over 1MB in filesystems, with a performance crossover zone between 256KB and 1MB where read:write ratio and overwrite frequency are decisive factors.

ABSTRACT

Application designers often face the question of whether to store large objects in a filesystem or in a database. Often this decision is made for application design simplicity. Sometimes, performance measurements are also used. This paper looks at the question of fragmentation - one of the operational issues that can affect the performance and/or manageability of the system as deployed long term. As expected from the common wisdom, objects smaller than 256KB are best stored in a database while objects larger than 1M are best stored in the filesystem. Between 256KB and 1MB, the read:write ratio and rate of object overwrite or replacement are important factors. We used the notion of "storage age" or number of object overwrites as way of normalizing wall clock time. Storage age allows our results or similar such results to be applied across a number of read:write ratios and object replacement rates.

Motivation & Objective

  • To determine the optimal storage strategy for large objects—either in a database (BLOB) or in a filesystem—based on long-term operational performance and manageability.
  • To address fragmentation as a critical operational issue affecting system performance over time.
  • To develop a normalized metric that allows performance comparisons across different workloads and deployment scenarios.
  • To identify size thresholds and workload characteristics that determine whether BLOB or filesystem storage is more efficient.
  • To provide data-driven guidance for application designers choosing between database and filesystem storage for large objects.

Proposed method

  • Introduces 'storage age' as a normalized time metric defined by the number of object overwrites, enabling cross-workload comparison of performance trends.
  • Employs controlled experiments measuring I/O performance, fragmentation, and storage efficiency across varying object sizes (from 256KB to 1MB) and workloads.
  • Evaluates both database (SQL Server) and filesystem (NTFS) storage under varying read:write ratios and object replacement rates.
  • Uses wall clock time normalized by storage age to isolate the impact of object overwriting on performance degradation.
  • Analyzes fragmentation and storage efficiency metrics to assess long-term manageability and scalability.
  • Applies the results to real-world workloads by simulating different access patterns and object lifecycle behaviors.

Experimental results

Research questions

  • RQ1At what object size does filesystem storage become more efficient than BLOB storage in a database?
  • RQ2How do read:write ratios and object overwrite frequency influence the performance and fragmentation of large object storage?
  • RQ3Can a normalized metric like 'storage age' effectively compare storage performance across diverse workloads and deployment scenarios?
  • RQ4What are the long-term operational implications of storing large objects in databases versus filesystems, particularly regarding fragmentation and manageability?
  • RQ5How do performance characteristics change in the intermediate size range (256KB to 1MB) where neither solution is clearly optimal?

Key findings

  • Objects smaller than 256KB consistently perform better when stored as BLOBs in a database due to better transactional integrity and lower I/O overhead.
  • Objects larger than 1MB are more efficiently stored in the filesystem, as database BLOB storage incurs higher overhead and fragmentation.
  • Between 256KB and 1MB, the optimal choice depends on the read:write ratio and the rate of object overwriting, with higher write frequencies favoring filesystems.
  • Storage age, defined as the number of object overwrites, provides a robust normalization metric that enables consistent performance comparison across different workloads.
  • Fragmentation increases significantly in database BLOB storage under high overwrite workloads, especially in the 256KB–1MB range, degrading performance over time.
  • Filesystem storage exhibits better long-term manageability and lower performance degradation under high write and overwrite workloads compared to BLOB storage.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.