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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T22:48:24+00:00 2026-05-10T22:48:24+00:00

I have a webpage that is taking way too long and need to optimize

  • 0

I have a webpage that is taking way too long and need to optimize it. Because uninformed optimizing is the devil, I need to know what exactly is holding me down. A quick glance showed me that it is probably a LINQ to SQL query that is most likely causing the trouble.

What are techniques of pinning the performance problem in this case? Are there specific things you experienced that LINQ to SQL is not that good at and thus should be avoided?

If needed, I can give more detail on the code that builds the query.

  • 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. 2026-05-10T22:48:25+00:00Added an answer on May 10, 2026 at 10:48 pm

    You can use a LINQ to SQL debug visualizer; Scott Guthrie has a nice blogpost about this, LINQ to SQL Debug Visualizer.

    Another application that can give you valuable information is the SQL Profiler. Check the introduction Introduction to SQL Profiler, it should get you started.

    I’ve had a couple of performace issues. I added a whole lot of TimeSpan objects with the current time before and after every LINQ statement. I added a few break points to see what the differences where between all this TimeSpans. In the Watch window you can calculate the difference on the fly and immediately see where the painpoints are. In my case it turned out to be a call to an extension method called at the wrong time.

    Also, the InsertOnSubmit and the SubmitChanges can cause a delay. Because my client shouldn’t have to wait on that, I placed the inserts on a different thread.

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

Sidebar

Related Questions

I have a webpage that pulls information from a database, converts it to .csv
I have a webpage that implements a set of tabs each showing different content.
I have a webpage that I use h1 tags multiple times within various DIVs
Scenario: You have an ASP.Net webpage that should display the next image in a
I have a webpage on my site that displays a table, reloads the XML
I have an application that launches a webpage in the current browser when the
I have an ASP.NET webpage running under IIS that uses a common assembly that
I have a touch screen kiosk that displays a webpage and a pdf document.
I have an ASP.NET 2.0 (C#) webpage with a link that pulls a blob
I have a webpage that uses an iFrame (see http://little-apps.org/lilregcleaner/history.html ) and (of course)

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.