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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:25:54+00:00 2026-05-28T01:25:54+00:00

Here I am facing one more challenging issue and as usual turning on this

  • 0

Here I am facing one more challenging issue and as usual turning on this site to get help.

I have one web service which performs some business logic and finally insert the result in a table. This works fine if my application is in minimal load.

Now when the load is heavy, my INSERT SQL statement got timed out. I have increased my Connection Timeout and Command Timeout. But the problem is that there are too many threads calling the same web method. Just to give some hint, my number of OPEN sql connection in heavy load is goes to 500+. FYI, I did close my connection after every command.

Now what should I do here to optimize this thing here?

I am planning to store the INSERT data in data table and store this data table in APPLICATION variable. And after every two minutes, insert the data from this datatable to database.

Do you guys have any other idea here which can smoothen my life here?

Thank you

EDIT

Here are more details ,when i run insert query in management studio

SQL Server parse and compile time:
CPU time = 0 ms, elapsed time = 0 ms.

SQL Server parse and compile time:
CPU time = 0 ms, elapsed time = 11 ms.

Table ‘IndexTable1’. Scan count 0, logical reads 2, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.

Table ‘IndexTable2’. Scan count 0, logical reads 2, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.

Table ‘fulltext_index_docidstatus_171147655’. Scan count 0, logical reads 11, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.

Table ‘MAINTABLE‘. Scan count 0, logical reads 28, physical reads 4, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.

(1 row(s) affected)

(1 row(s) affected)

SQL Server Execution Times:
CPU time = 0 ms, elapsed time = 69 ms.

SQL Server parse and compile time:
CPU time = 0 ms, elapsed time = 0 ms.

SQL Server Execution Times:
CPU time = 0 ms, elapsed time = 0 ms.

  • 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-28T01:25:54+00:00Added an answer on May 28, 2026 at 1:25 am

    You can use a dedicated thread for inserting data into the DB. There’s no point in opening a new connection for every insert statement, when instead you can insert data in big chunks once every few seconds. This thread can run on a dedicated dispatcher or even a timer, and you can use a thread-safe queue for inter-thread communication.

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

Sidebar

Related Questions

I was facing with one minor issue, and I'm wondering: Why? here we have
We have a massive client facing web application here. We recently re-wrote the buy
I'm facing an issue here. For Facebook debugging reasons, I made a host entry
I am facing a problem on developing my web app, here is the description:
I didn't understand ..why I am facing this error.. Here is my code: package
I am facing one issue with linq query in c# , my linq query
I am facing more or less the same problem described here , (i.e. I
This question deals with teamwork and emails. I'm facing the following scenario. I have
I'm facing a hard time to get the following query: Let's say I have
I'm facing an annoying issue and I can't find out why. I have a

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.