Click here to Skip to main content
15,897,226 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I need to save, in a log file, information received from a device. This device sends a large number of frames per second and is very important save them all. Now, these frames are being saved to a sequential text file.

The important thing is save all the frames, subsequent actions does not matter for now.

In this case: Storing the data directly in SQL may provide better performance than using text files???
Posted
Comments
Sergey Alexandrovich Kryukov 20-Feb-12 14:16pm    
What kind of "frames"?
--SA
cass3000 20-Feb-12 14:18pm    
Frames = data = strings

Storing who-knows-what which requires speed in any text form would be plain stupid, but you could store it in files in the form of binary data. That would be faster than using SQL, most certainly.

—SA
 
Share this answer
 
Hi,

We are also working on logger. in case of textfile you have to face so many problems when file exceeding size in MBs. in our case log file sizing from MBs to GBs. Searching is very difficult. if you do not want to perform any search or filter operation on your log then TextFile is preferable otherwise SQL.

hope this information is helpful to you,

Thanks
-Amit
 
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