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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T19:56:21+00:00 2026-05-31T19:56:21+00:00

I have several performance issue in my website. I’m using asp.net mvc 2 and

  • 0

I have several performance issue in my website.
I’m using asp.net mvc 2 and Entity Framework 4.0. I bought a Entity Framework Profiler to see what kind of SQL request that EF generated.

By example, some page take between 3 and 5 seconds to open. This is to much for my client.
To see if it’s a performance problem with SQL generated by EF, I used my profiler and Copy / Paste the generated SQL in Sql Management Studio to see the execution plan and the sql statistic. The result show in less than a second.

Now that I eliminated the SQL query, I suspect EF at buidling query step.
I Follow the msdn step by step to pre-generate my view. I didn’t see any performance gain.

How to be sure that my query use these Pre-Generated Views ?
Is there anything I can do to increase performance of my website ?

thanks

  • 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-31T19:56:22+00:00Added an answer on May 31, 2026 at 7:56 pm

    First of all, keep in mind that the pre-compiled queries still take just as long (in fact a little longer) the first time they are run, because the queries are compiled the first time they are invoked. After the first invocation, you should see a significant performance increase on the individual queries.

    However, you will find the best answer to all performance questions is: figure out what’s taking the most time first, then work on improving in that area. Until you have run a profiler and know where your system is blocking, any time you spend trying to speed things up is likely to be wasted.

    Once you’ve determined what’s taking the most time, there are a lot of possible techniques to use to speed things up:

    1. Caching data that doesn’t change often
    2. Restructuring your data accesses so you pull the data you need in fewer round trips.
    3. Ensuring you’re not pulling more data than you need when you do your database queries.
    4. Buying better hardware.
    5. … and many others

    One last note: In Entity Framework 5, they plan to implement automatic query caching, which will make precompiling queries practically useless. So I’d only recommend doing it where you know for sure that you’ll get a significant improvement.

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

Sidebar

Related Questions

I have several RequiredFieldValidators in an ASP.NET 1.1 web application that are firing on
We have several .NET applications that monitor a directory for new files, using FileSystemWatcher.
we have some performance issue with a program, I traced tsql using sql server
We are trying to track down a performance issue on a asp.net solution on
I've set up mvc-mini-profiler against my Entity Framework-powered MVC 3 site. Everything is duly
I have an ASP.NET MVC application, which seems to run OK on my machine,
Strange performance outcome, I have a LINQ to SQL query which uses several let
I have several ASP:TextBox controls on a form (about 20). When the form loads,
We have several wizard style form applications on our website where we capture information
For an asp.Net MVC project, I will need to handle large files( mostly 200-300Mo,

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.