FileStream and filetable best minimum size for storing into DB

Alen Cappelletti 992 Reputation points
2022-09-18T21:02:32.963+00:00

Hi all,
according MS storing objects into DB is better IF:

"the stored objects are on average larger than 1 MB, FileStream is the best option because of the faster read access. For smaller objects, storing varbinary(max) BLOBs in the database often provides better streaming performance".

Is this claim still valid? Since I would like to use FileTable (which is based on Filestream of course) to run a project which I don't think has files of this minimum size.

Thanks, Alen

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,688 questions
0 comments No comments
{count} votes

Accepted answer
  1. PandaPan-MSFT 1,911 Reputation points
    2022-09-19T03:12:00.027+00:00

    Hi @Alen Cappelletti ,
    Here is the official article(09/17/2022) https://learn.microsoft.com/en-us/sql/relational-databases/blob/filestream-sql-server?view=sql-server-ver16, which proves that it's still valid.
    242353-image.png


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment"


2 additional answers

Sort by: Most helpful
  1. Erland Sommarskog 110.4K Reputation points MVP
    2022-09-18T21:23:27.277+00:00

    The text you quote is intended for using FILESTREAM (and OpelSqlFilstream + Win32 fileAPI) in comparison with storing data as blobs directly in the database, and it was written when SQL 2008 was released, the feature where FILESTREAM was introduced.

    FileTable is a different game and it was introduced in SQL 2012. FileTable comes with some other advantages beyond performance, which may make it more attractive for also smaller file sizes.

    1 person found this answer helpful.

  2. PandaPan-MSFT 1,911 Reputation points
    2022-09-20T03:04:00.407+00:00

    Hi @Alen Cappelletti ,
    Do you have further questions on this , could we offer more support?

    If this helps on your issue, you could mark it as answer so other user with similar problem could see this easier. :)

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.