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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:56:51+00:00 2026-06-15T16:56:51+00:00

Have a project that uses the entity framework (v1 with .NET 3.5). It’s been

  • 0

Have a project that uses the entity framework (v1 with .NET 3.5). It’s been in use for a few years, but it’s now being used by more people. Started getting timeout errors and have tracked it down to a few things. For simplicity sake let’s say my database has three tables, product, part, and product_part. There are ~1400 parts and a handful of products.

The user has the ability to add any number of parts to a product. My problem is that when there are many parts added to the product the inserts take a long time. I think it’s mostly due to network traffic/delay, but to insert all 1400 takes around a minute. If someone goes in and tries to view the details of a part while those records are being inserted I get a timeout and can see a block in the Activity Monitor of SQL Server.

What can I do to avoid this? My apologies if this has been asked before and I missed it.

Thanks,
Nick

  • 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-06-15T16:56:52+00:00Added an answer on June 15, 2026 at 4:56 pm

    I think the root problem is that your write transaction is taking so long. EF is not good at executing mass DML. It executes each insert in a separate network roundtrip and separate statement.

    If you want to insert 1400 rows, and performance matters, do the insert in one single statement using TVP’s (INSERT ... SELECT * FROM @tvp). Or switch to bulk-copy but I don’t think that will be advantageous at only 1400 rows.

    If your read transactions are getting blocked, and this is a problem, switch on snapshot isolation. That takes care of the readers 100% as they never block under snapshot isolation.

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

Sidebar

Related Questions

I have a MVC3 project that uses the Entity Framework and Ninject v2.2, and
I have an ASP.NET MVC 3 (using Entity Framework 4.2) application that uses transactions
I have a MVC 3 project that uses Entity Framework. I can successfully update
I have a project that uses data from Entity Framework and present them in
I have a simple WCF project that uses the Entity Framework to access the
I currently have a project that uses Entity Framework 4.1 for logging to a
We have a project that uses JPA/Hibernate on the server side, the mapped entity
I have a project that uses the Enterprise Library 4.1. When I target .net
I have a project that uses the .net FileSystemWatcher to watch a Samba network
We have a WCF service that uses Entity Framework to query a SQL database.

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.