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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:05:04+00:00 2026-05-23T20:05:04+00:00

On a project with around 350 entities in the EDMX entity model, my team

  • 0

On a project with around 350 entities in the EDMX entity model, my team is experiencing lengthly waits when the first query happens and when the first save happens.

When profiling a simple case which runs a few queries and saves, a simple set of steps just to fire a query and save takes minutes.

The first query takes 47% of the overall time just the call that framework method that executes the query.

The first save takes 50% of the overall time just in System.Data.Objects.ObjectContext.SaveChanges.

Are there any good options to improve performance – this can be a drain on development time.

(Once the system hits production, it’s annoying at startup but not a problem during the ongoing execution)

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

    When you use context for the first time it generates mapping model defined in metadata. The option is to pregenerate this model and include pregenerated files in your application (but you must regenerate it each time you modify your EDMX).

    Such a big model should be probably divided into multiple smaller models. I hardly believe that 350 entities form single domain which cannot be divided.

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

Sidebar

Related Questions

I work in the maintenance team of a big project (around 7k+ classes) and
We have a large Visual Studio 2005 C++/Mfc solution, 1 project with around 1300
I'm playing around with Project Euler's Problem 220 , and I'm a little confused
I'm playing around at the start of a personal project in C# and MySQL.
I just recently got around to converting an old svn project to git. Everything
After installing Monobjc and playing around with the Monobjc Application Project under C# in
Are there any known issues around how many pages are in an ASP.NET project?
I have a large project in Vb.net which drives a web browser control around.
I'm playing around with ASP.NET MVC and I just loaded up an empty project
I use a wrapper around make to compile C++ code within a project. For

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.