Click here to Skip to main content
15,888,984 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My steps
1. Directory created
2. Process directory Files one by one--Processing means insert file data in dB.
3. For this i tried to Multithreaded system.But it takes much more time.
What is preoper way so that process become faster and reliable?

What I have tried:

I created multi threaded system which works well but takes time .
As no of threads created according to files in folder.And this takes too long time when there are large no of files.
So I need proper way of handling files using multithreaded or sequentially file processingw which should I use...
Thanks in advance....
Posted
Comments
VR Karthikeyan 28-Mar-16 6:27am    
You can use sequential access.
RickZeeland 28-Mar-16 6:42am    
Tasks might be of interest to you, here is an article about it:
http://www.codeproject.com/Articles/152765/Task-Parallel-Library-of-n
CHill60 28-Mar-16 8:20am    
If you are using SQL Server you can do bulk uploads from files (and some other RDBMS too) - how are you "processing" the files?
sp_suresh 29-Mar-16 1:09am    
I will check it ...and its not possible to upload files directly to sql server as files are tool heavy...So I will try for sequential access .. thanks Kathikeyan,RickZeeland,Chill60 for your valuable information .....

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