I write a program to read speed of a slow, will have an affect data into data operation, of course, want to change a faster way to read a file data, the Internet flow in a file and memory flow example, but did not mention flow operation and function than normal file operation, what are the advantages? File and memory flows and what difference? Is there a good way to improve the file access speed? My current method from file read a 25 gigabytes of record, and deposited in the database after recycled repeatedly the above operation, speed is very slow,
CodePudding user response:
File is a binary form, the maximum of no more than 16 m,
CodePudding user response:
Could not on the file to read, but in the process of writing database,
To save the SQL statement to a list, and then in a submit multiple SQL statements,
CodePudding user response:
It's convenient to use, without using a lot of API, if you are a novice and focus not on the file to read and write streams can be used
CodePudding user response:
Only 16 m, directly use TMemoryStream LoadFromFile loaded into memory.