J
Jurgen
Hello,
I've a C# program that:
1) loads data for 30000 items from SQL Server
2) loops through all the items and does some extensive calculaltions on the data
3) loops through all the items to Writs the resutls back to the DB
This takes about half an hour, almost equally divided between step 2 and step1+3. The program runs
on the same machine as the SQL Server.
So I have 1 CPU intensive step and 2 disc I/O intensive steps.
I've never used threads before, but I've been thinking about using threading to improve
performance. A typical thread would load the data for a single article, perform the arithmetics
and write back the results. This way I hope to keep the processor calculating for an item while
disc operations are being performed for other items.
IS this feasable/easy to achieve and will this be faster than my current program?
regards,
I've a C# program that:
1) loads data for 30000 items from SQL Server
2) loops through all the items and does some extensive calculaltions on the data
3) loops through all the items to Writs the resutls back to the DB
This takes about half an hour, almost equally divided between step 2 and step1+3. The program runs
on the same machine as the SQL Server.
So I have 1 CPU intensive step and 2 disc I/O intensive steps.
I've never used threads before, but I've been thinking about using threading to improve
performance. A typical thread would load the data for a single article, perform the arithmetics
and write back the results. This way I hope to keep the processor calculating for an item while
disc operations are being performed for other items.
IS this feasable/easy to achieve and will this be faster than my current program?
regards,