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 8685271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T22:31:32+00:00 2026-06-12T22:31:32+00:00

My application is using SQL Server 2008 and we need to add functionality for

  • 0

My application is using SQL Server 2008 and we need to add functionality for users to optionally be able to save any file of any size to a database table. I have set up the table similar to this format:

  • FileStorageID – int (indentity PK) (This is also a foreign key to a different table)
  • FileData – varbinary(max)
  • FileName – varchar(1000)

The FileStorage table has a zero-to-one relationship to another table Documentation. The idea is that users can write either write some text, upload a file, or both.

This table looks as follows:

  • DocumentationID – int (identity PK, FK to an “IrrelevantInterestingObject” table)
  • Text – varchar(max)
  • FileStorageID – int (FK to aforementioned FileStorage table)

My question is this: When I query the Documentation table using Entity Framework 5, and a file is present in the database, will the entire file be stored in memory? If yes, what would a reasonable threshold be before there is a noticeable performance issue?

  • 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-12T22:31:33+00:00Added an answer on June 12, 2026 at 10:31 pm

    If you query Documentation table no data from related FileStorage table will be loaded until you load the relation either through eager, explicit or lazy loading. Once you use any such method or query FileStorage directly whole FileData for every retrieved record will be loaded to memory.

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

Sidebar

Related Questions

I want to develop a generic CRM application using SQL Server 2008. The application
I have an asp.net web application written in C# using a SQL Server 2008
I am developing one web application using asp.net 2005 and Microsoft SQL Server 2008
I am developing a new web application using .NET 3.5 and SQL Server 2008
I have an ASP.NET Web Application using SQL Server 2008. When a post code
Example scenario in an ASP.NET application using SQL Server membership provider : 1) a
What are the licences required for an asp.net (MVC) web application using sql server
I have an application using LINQ-to-SQL with SQL Server CE 4. I know that
I have 2 load balanced web servers. My application is using the SQL Server
I am using SQL Server for my web application. How will I know that

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.