I am working with large files writing from database MySQL to disk. My file may reach GB per file. My concern is, I've tried to write the file in several ways but the results are the same (taking longer time to finished).
To produce a file with 0.2 GB or 200,000 KB takes almost 2 hours and half to complete. I've tried to grab the data by using either TSQLQuery or TClientdataset, but they gives the same results (time taken to finish) writing the files.
Meanwhile, for the writing processes, I've used TFileStream and also Windows.API class to write the files, there are no difference between them. My expectation is it will gives some difference since they are processing in different ways.
I also have tried the method which have been posted before at (Buffered files (for faster disk access))
but still it didn't enhance the performance.
This situation only occurs for large files. When I try to produce a small size of files, it is quite fast.
I've ran the same code in D7. The writing process takes only few minutes to be done. The reason I used XE5 is because I want to avoid from using BDE's components.
Is there any other way to boost the performance for writing large files to disk?