Use your identification key in the database to sort the files in the folder.
Take the first number, put it in the first directory, the second number in the next .. and so on:
Example:
18
/ video / 1/8 / MyvideoFile
one thousand eight hundred ninety two
/ video / 1/8/9/2 / MyVideoFile
Alternatively, you can also sort them on different servers or NAS clusters, storing the server number in your database.
Hope this helps.
source share