September 26, 2007 at 9:11 pm
what are the things i need to consider when creating a batch process in my server??
September 26, 2007 at 9:28 pm
What is that process doing?
September 26, 2007 at 9:36 pm
It insert, update and delete more than 100,000 records..
this is the scenario: i have a web application made in ASP NET 2003 that executes the batch processing. when the user connect to my web application, im in an intranet only, then start the batch processing by clicking on the "Process Batch" button on my web page. a process id (for example spid 57) on Sql Server will run and start doing the INSERT, UPDATE and DELETE.. by the way my SQL Statements is inside my DLL not in STORED PROCS.. so the one executing it is a thread. but after 30mins a new process id will run (spid 59) at the same time and do the same thing... now 2 process id is running at the same time.. my question is why does sql server create a new process id???
September 26, 2007 at 9:46 pm
How big is the worked table??
Sometimes it's just faster to truncate / reload.
September 26, 2007 at 9:50 pm
If it's only 100K rows, lock the table when you do the delete... it'll take less than 10 seconds if you do it right.
Of course, if you have 72 indexes on 26 columns with 42 delete triggers, then you might have to consider a slightly different approach 😀
--Jeff Moden
Change is inevitable... Change for the better is not.
September 26, 2007 at 10:00 pm
I'm feeling a real life story comming from you Jeff... right about now ;).
September 26, 2007 at 10:13 pm
Yeah, huh? Can you feel the love there? :laugh:
--Jeff Moden
Change is inevitable... Change for the better is not.
September 26, 2007 at 10:15 pm
Not at this hour... need to go to bed :hehe:.
September 26, 2007 at 11:25 pm
please help me on this issue.. this is my YM id "berm0"
September 26, 2007 at 11:53 pm
Already did... look at my previous post... the one where I tell you to just lock the table. Also, Remi asked how many total rows are in the table... we're waiting for an answer on that...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 27, 2007 at 12:26 am
my problem is that after 30mins why does SQL create another process that executes the same procedures...
by the way i have only 1gb memory... does it affect the processing??
September 27, 2007 at 8:31 am
That me be a solution but I wouldn't start there. PLEASE answer the questions we asked, we need that to go on and help you.
Viewing 12 posts - 1 through 12 (of 12 total)
You must be logged in to reply to this topic. Login to reply