Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8151877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T15:32:14+00:00 2026-06-06T15:32:14+00:00

This question is related to database/RDBMS where i have little knowledge regarding performance and

  • 0

This question is related to database/RDBMS where i have little knowledge regarding performance and record handling.

what will be the better option (performance wise) if we need to store images relevant to some records. Whether, We should store images as field into databases or maintain our own files and store file path into database.

I think current rdbms should well capable of handling image files their own and we can rely on those.but, if multiple records( or records from different tablse) referring to same image then i think, it is better to store file’s path instead of image it self.

Looking forward database experts opnions.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T15:32:17+00:00Added an answer on June 6, 2026 at 3:32 pm

    There’s a really good paper by Microsoft Research called To Blob or Not To Blob.

    Their conclusion after a large number of performance tests and analysis is this:

    • if your pictures or document are typically below 256K in size, storing them in a database VARBINARY column is more efficient

    • if your pictures or document are typically over 1 MB in size, storing them in the filesystem is more efficient (and with SQL Server 2008’s FILESTREAM attribute, they’re still under transactional control and part of the database)

    • in between those two, it’s a bit of a toss-up depending on your use

    Of course, this is specific to SQL Server – but I bet other RDBMS will have similar behaviors – up to a certain size, it’s okay and actually better (more performant) to store your images into the database, but if they grow too large, they become too much of a burden on the relational engine.

    The problem with storing just the path name into the database and leaving the actual image outside the database engine of course is that you don’t have any control in your database over whether or not that image file is still present, has been renamed or moved. There’s no “transactional umbrella” over the file-system operations – and thus you’ll need to be able to deal with the fact file might not be there anymore, even if their names are stored in your database table.

    SQL Server with the FILESTREAM feature fixes this – your files remain on disk – but SQL Server has a “transactional umbrella” over them and they cannot be just deleted or moved without SQL Server knowing about it (and permitting it).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question is related to others I have asked on here, mainly regarding sorting
Please note this question related to performance only. Lets skip design guidelines, philosophy, compatibility,
This question is related to awk, I suppose. I have no experience with awk.
I have a simple question related to database schema, how can I check whether
So, I think that I have asked this question and others related to it
I have a question related to database design. The database that I'm working with
I have looked around but cannot find anything that answered this particular question related
This is a question related to how people are handling a situation in the
I have a question related to matching strings in a MSSQL database. Basically, I
This question is somewhat related to this. I want to have document storage along

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.