Dealing with UDP streamed data - saving
-
Then I would benchmark the insertion speed and maybe offload the storage to a secondary thread.
-
Then I would benchmark the insertion speed and maybe offload the storage to a secondary thread.
@SGaist That makes sense. What I'm curious about is the storage method though...I've been looking for the best option...is SqlIte what you would recommend? When you say benchmark, are you referring to buffering? I'll be in control of the send rate...it varies for each project. The highest rate we've ever dealt with is 125hz.
-
No, to benchmark is to measure performance.
Depending on the volume of data you expect to get a full database system like PostgreSQL might be better.
Note that a NoSQL database might also be of interest.
-
Hence the benchmarking :-)
-
If the amount of data is reasonable and the file writing speed is as well, that is a valid option. Don't forget the final dump when you close the application otherwise you might lose data.
-
Using QTextStream with QFile would be a good start.
Start simple, check speed and if not enough, rework that part.