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

  • Home
  • SEARCH
  • 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 6128137
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:35:34+00:00 2026-05-23T16:35:34+00:00

At the moment I’m working on a very big database model for one of

  • 0

At the moment I’m working on a very big database model for one of my websites. I’m using Linq-to-entities for talking to the database. Now whenever I get an object from my context I see this problem:

  • Entity “BookReader” got a list with all the books he has read. But entity “Book” also got a list with all the bookreaders that have read the book. Now that would mean that whenever my datacontext returns a bookreader entity in debug mode and I look within the list of books he has read I also see all the readers in there and the books they read. etc etc.

It looks like an endless loop that would that my whole database would be loaded into the memory. Am I making a mistake of thinking this or does this really give a performance problem?

  • 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-05-23T16:35:35+00:00Added an answer on May 23, 2026 at 4:35 pm

    I don’t think so. EF never loads related entities until you or your code instructs it to do that. You mentioned that you see that in debugger. That means that you triggered lazy loading of related entity by opening the parent entity – related collection is empty until you try to access it for the first time and browsing the entity in debugger counts as access. You can check it in SQL profiler.

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

Sidebar

Related Questions

I am at the moment working on a project on Visual Studio 2010 using
At the moment I am working on a project admin application in C# 3.5
At the moment we use HSQLDB as an embedded database, but we search for
At moment I want to implement picture upload without using any plug-ins. My upload
at the moment i'm using this validation plugin: ( http://www.position-absolute.com/articles/jquery-form-validator-because-form-validation-is-a-mess/ ) but when it
At the moment I am working on an on screen display project with black,
Problem Summary At the moment when using f# I must explicitly coerce a value
At the moment I am using this line to take a string and extract
At this moment, I am the only person working on a project in svn.
At the moment I'm working with a team on a Play! Framework app. With

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.