If I have 3 million pages, which directory structure is better?
Method 1. ~ / 123456789.htm
(Entering all 3 million pages in the same folder folder)
Method 2. ~ / 789 / 123456789.htm
(Create 999 subfolders, each subfolder contains about 3000 pages)
In Windows Server 2008, which folder structure is faster? (To create, read and delete files)
IMO putting thousands of files in a single directory is not good practice.
One option is to get the hexadecimal representation of an integer,eg 123456789 -> 075BCD15
eg 123456789 -> 075BCD15
: ~/07/5B/CD/15.htm
~/07/5B/CD/15.htm
. DMS . /YYYY/MM/DD/HH/MM/, , .
, NTFS Windows 2008 , . 3.000.000 , . , , 10 ( 6, 3 * 10 ^ 6 ), .
, . , , , , :)
, (NTFS? ext3?), , , , 3 // .
, NTFS 30 000 .
400K. NTFS 400K, , , 676 .
Source: https://habr.com/ru/post/1744087/More articles:problem using flalign (LaTeX) - latexDoes .Net use device-dependent or device-independent bitmaps? - .netHow to set / check cookies in iPhone application? - iphoneTrying to understand MVC models, tips? - phpHow to create a magic square in PHP? - mathHow to get divs in jquery? - jqueryUsing PHP as a template language - phpHow to backup data stored in Core Data - iPhone application? - objective-cсоветы и рекомендации при переносе кода с vb6 на.net с Visual Studio 2010 - .netHow to unit test AOP? - .netAll Articles