17.07.2015 Views

The Art of SQL Server FILESTREAM - Red Gate Software

The Art of SQL Server FILESTREAM - Red Gate Software

The Art of SQL Server FILESTREAM - Red Gate Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 12: Planning, Configurationand Best PracticesCorrect planning and configuration are vital ingredients in any successful technologyimplementation, and the <strong>FILESTREAM</strong> feature is no exception to this rule. To makesure the <strong>FILESTREAM</strong> feature is tuned for optimum performance and manageability,there are a number <strong>of</strong> factors to consider. <strong>The</strong> most important practices are included inthis chapter. Readers may also wish to further refer to the seminal white paper by PaulRandal: <strong>FILESTREAM</strong> Storage in <strong>SQL</strong> <strong>Server</strong> 2008 (http://brurl.com/fs7). Even thoughthe paper was written to target <strong>SQL</strong> <strong>Server</strong> 2008 and written around the original release,the information it presents is still valid and highly useful.Planning<strong>FILESTREAM</strong> is a great feature if implemented where it is really needed, but it shouldnot be an automatic choice for every BLOB storage requirement. It is very important tounderstand this at the planning stage <strong>of</strong> your project. Keep in mind that there are caseswhere storing BLOB values in a VARBINARY(MAX) column will perform better thanstoring them in a <strong>FILESTREAM</strong> column, so we need to understand where <strong>FILESTREAM</strong> isideal and where it is not.As with many technology questions, the answer is "it depends." A Micros<strong>of</strong>t Researchstudy (conducted before the introduction <strong>of</strong> the <strong>FILESTREAM</strong> feature) investigatedthe impact <strong>of</strong> storing BLOB values in the database versus the file system, and foundthe following:• BLOB values over 1 MB in size provide best performance when stored in the file system(i.e. would benefit from storage in a <strong>FILESTREAM</strong> column).437

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!