If I have 3 million pages, which directory structure is better?
Method 1. ~/123456789.htm
(Putting all the 3 million pages into
the same folder without any sub
folders)
Method 2. ~/789/123456789.htm
(Create 999 sub-folders, each
sub-folder contains about 3000 pages)
For Windows Server 2008, which folder structure is faster? (For file creation, reading and deletion)
IMO putting thousand of files in one directory isn’t a good practice.
One option is to get the hex representation of the integer,
eg 123456789 -> 075BCD15and use this directory structure:
~/07/5B/CD/15.htm