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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T14:30:24+00:00 2026-05-28T14:30:24+00:00

I have a problem. My LINQ to SQL queries are pushing data to the

  • 0

I have a problem. My LINQ to SQL queries are pushing data to the database at ~1000 rows per second. But this is much too slow for me. The objects are not complicated. CPU usage is <10% and bandwidth is not the bottleneck too.

10% is on client, on server is 0% or max 1% generally not working at all, not traversing indexes etc.

Why 1000/s are slow, i need something around 20000/s – 200000/s to solve my problem in other way i will get more data than i can calculate.

I dont using transaction but LINQ using, when i post for example milion objects new objects to DataContext and run SubmitChanges() then this is inserting in LINQ internal transaction.

I dont use parallel LINQ, i dont have many selects, mostly in this scenario i’m inserting objects and want use all resources i have not only 5% od cpu and 10kb/s of network!

  • 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-28T14:30:25+00:00Added an answer on May 28, 2026 at 2:30 pm

    when i post for example milion objects

    Forget it. Linq2sql is not intended for such large batch updates/inserts.

    The problem is that Linq2sql will execute a separate insert (or update) statement for each insert (update). This kind of behaviour is not suitable with such large numbers.

    For inserts you should look into SqlBulkCopy because it is a lot faster (and really order of magnitudes faster).

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

Sidebar

Related Questions

I have these below LINQ to SQL queries var kayitlarFiltreli = from rows in
I've just started to use linq to sql and have run into a problem
When doing linq-to-sql in c#, you could do something like this: var data =
I have a very simple grouping and aggregation problem in LINQ to SQL that
I have a serious(it's getting me crazy) problem with LINQ to SQL . I
I have a problem with linq to sql query. If someone will help me,
Hi, I have a linq to sql question like this : tmpAdList1 = (from
I use NHibernate 3.2 with LINQ and have n+1 select queries inq SQL. In
Using C#, Linq to SQL, SQL Server, I have this: MyTable has a column
I have a rather complex database, where we are using Linq to SQL. I'm

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.