I have 814,652 XML files on a single folder, the names of the files are integers from 1 to 814,652.
In my application I load some xml file to a datatable but the loading is not instant, some time a delay up to 3 seconds.
Is it because the folder contains too many files?
If i could divide the files into multiple folders, will that speed things up?
simply i read a single time at a time based on the file name that i get from a selected row in a datagrid
note that i don't need to loop through the file list, all i need is to load a specified file name.
int filename = ;//get the value from the focused row in the datagrid
mydatatable.ReadXml(path + @"\xmlfiles\" + filename + ".xml");
update : dividing the files to sub folders and minimizing the number of files per folder made it even slower.