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

The Archive Base Latest Questions

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

I use C#, Linq and EF4. I have a front end for my website,

  • 0

I use C#, Linq and EF4.

I have a front end for my website, I need display (read only) data from my data base on my web pages.

I would like to know what could help me to achieve faster (read only) results to my users.

Here some idea I’m thinking to implement.

  • A – Using Linq and Anonymous Types, so I can select just the proprieties I need to display (using EF) and save some memory. Please tell me if this would increase speed.
  • B – Pre compiling my queries.
  • C – Have the option tracking off for my objects BojectContext in EF.

Please tell what do you think specially for point A. Thanks for your help!

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

    If you have the functionality working and if you need to optimise then I think the first step is to measure. As a first step, try using SO’s profiler to see where your app is consuming time http://code.google.com/p/mvc-mini-profiler/

    After you’ve measured, then you can experiment with A, B or C – or you might identify a totally different area to optimise. (My own favorite area for EF optimisation is lazy-loaded sub-objects)


    Update (in response to comment): Honestly I don’t expect A, B or C to gain you any significant time – you need to measure – it’s the only way to find out where optimisations can be made. Once you’ve measured then my guess is that none of A, B or C will save you any significant time at all.

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

Sidebar

Related Questions

I use LINQ, C#, EF4. I have this query expression in Linq. I need
I use Linq to Umbraco extensively for read only operations ie. IEnumerable<Country> countries =
I use c#, linq and EF4. I have two tables in my DataBase represented
I use c#, linq and EF4. I have two tables in my DataBase represented
Due to the potential differences between Linq-to-Entities (EF4) and Linq-to-Objects, I need to use
I use c#, linq and EF4. I have two tables in my DataBase represented
I use c#, linq and EF4. I need help to write a LINQ query
I use c# asp-net 4 and ef4. I have a LINQ query which create
I use Linq to SQL in my project. I fetch data from a SQL
Possible Duplicate: Use LINQ to read all nodes from XML I am trying to

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.