Click here to Skip to main content
15,892,293 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
What is the best way to send a million records to another repository p.e to file?

I have a webservice that provide these records one by one, and receptor send a ACK that confirm the reception is ok, this way is very slow.

Greetings
Posted

One way is to send multiple records in one shot.
This way the client does not need to ACK each record.
To ensure all records have been received, you could send some byte count or record count first that can be cross-checked after the records have been received or you could go for a more robust way of using something like a CRC check.
 
Share this answer
 
If you can't implement _Superman_'s solution, you could open multiple connections.

Then you're not blocked on one single request.
 
Share this answer
 
Hello ollanthay426 ,

If you know SSIS (Sql Server Integration Services) then you can do this thing. SSIS is designed to perform ETL operation (Extract , Transfer , Load) . Also here in your case you can connect multiple sources and dump that data into one central Data warehouse.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900