I have an application that creates lots of files (500,000 a day on average)
and stores them in a hierachy like this:
drive
folder
yyyy-mm-dd
id
file.nnn
where nnn is a number between 0 and 999.
There are around 1000 yyyy-mm-dd each containing around 5000 id folders
which contain on average 100 file.nnn files.
All was fine until recently when everything has slowed right down. I've
traced the bottle neck to TFileStream.Create which is sometimes fine but
occasionally takes 5-10 seconds! The code uses a new TFileStream for each
block - creates it, writes to it and then frees it.
Any help would be greatly appreciated - if this isn't the right formum
please let me know.
Simon