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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:38:54+00:00 2026-05-29T04:38:54+00:00

I am developing a project using Entity Framework 4. Having around 50 Entities, mostly

  • 0

I am developing a project using Entity Framework 4. Having around 50 Entities, mostly all the tables are having relation with user table. The searching a user is bit more time to return the results. In user table I have removed navigation properties even it is taking more time.
Mostly on web the performance guidelines are provided for any particular scenario/problem. Is there any common checklist available for improving performance of Entity Frame work?

Search the user as dynamically like follows

 var searchPredication = (from user in entities.Users
 where ((searchKeyword == "") || (searchField != "" && searchKeyword != "" &&
 searchField == "BarCode" && user.BarCode == searchKeyword)||
(searchField == "LastName" && user.LastName == searchKeyword)  ||
(searchField == "FirstName" && user.FirstName == searchKeyword))) && !user.IsDeleted 
select user).FirstOrDefault();

And also I need to give some more information about common performance management in EF.

  • 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-29T04:38:58+00:00Added an answer on May 29, 2026 at 4:38 am

    There’s not really any ‘Checklist’ but here’s some tips for making sure your sites perform well:

    • Always keep a large volume of data in your dev database, if you inject millions of dummy rows, it will exaggerate performance problems while you are still in development.
    • Use performance tests, if we have a high volume site we setup at least a test per page to sanity check load times. This allows you to pick out outlying pages.
    • Avoid really complex LINQ statements, they are normally (but not always) wrong, mostly you can achieve things simply.
    • Enumerate your set as soon as you have the correct data. This avoids accidently complicating the query in your display code. (ie use ToList or ToArray)
    • Use EFProfiler or SQLProfiler on complicated queries to validate that the SQL seems reasonable.

    Hope this helps, overall peformance is more of an art than a science. Its a bit of a sliding scale.

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

Sidebar

Related Questions

I am developing a medium sized ASP.NET project using ASP.NET MVC and Entity Framework.
I have begun developing an application using the Entity Framework. I have added a
I am developing a project using the Play framework. Yesterday, 'something' happened and my
I have a project where the client is using Entity Framework, and I'm trying
I am developing project using Spring , Struts2 & Hibernate . Now I want
I'm developing a project using the MVVM pattern in WPF. One of the key
We're developing a Qt project using the Code::Blocks IDE with the QtWorkbench plugin. We'd
Background: I am developing a largish project using at Atmel AVR atmega2560. This project
I just started practicing TDD in my projects. I'm developing a project now using
I am developing e-commerce project on Asp.Net 3.5 with C#. I am using 3

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.