SgDotNet
Singapore Professional .NET User Group -For Cool Developers

Webservice for Bulk Processing

rated by 0 users
This post has 3 Replies | 1 Follower

Top 150 Contributor
Posts 11
qing02051981 Posted: 05-15-2007 10:39 AM

Hi,

I have a webservice that do some processing. There are around 15,000 records to process and it takes a few minutes to finish processing due to the large number of records. Is there anyway to speed up the invoking of the webservice?

//The following loop record by record and pass each record into the webservice for processing. 

for(int i=0; i<15000; i++){

//Invoke webservice here 

 

Best Regards

qing02051981 

Top 10 Contributor
Posts 2,284
How about writing a new web service, passing the data en bloc, letting it do the looping and processing within, instead of your client code? Either way, working on 15000 records will still take time, but you limit it to a single HTTP call (supposing the entire size of data doesn't exceed the web server's limit) instead of 15000 times.

The melody of logic will always play out the truth. ~ Narumi Ayumu, Spiral

Top 150 Contributor
Posts 11

hmm...Kind of a good idea. I will try it out. 

Thanks

Top 150 Contributor
Posts 15

just a wild guess, you mentioned about 15000 records, are you going to hit db for that number of timesHmm

if yes, that would be a not so good idea!!! if i was to do something i would use SQL-CLR integeration feature, pass datatable to sql using webservice or even directly in case just for testing.

thanks,

satish.

Page 1 of 1 (4 items) | RSS
Copyright SgDotNet 2004-2008
Powered by Community Server (Commercial Edition), by Telligent Systems