Splitting storage to folders #71
Closed
sergey-shandar
started this conversation in
Ideas
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Firstly, these folders:
roots/
parts/
If we would like to reduce the number of files in the folder. We can splif further:
https://stackoverflow.com/questions/466521/how-many-files-can-i-put-in-a-directory
a/
1_024a/b/
32768ab/
1_048_576ab/cd/
1_073_741_824abc/
1_073_741_824abc/def/
35_184_372_088_832Git keeps 2 hex symbols. 256 folders.
I like two symbols
ab/
, two levelsab/cd/
. With a limit of about 1024 files and folders in one folder, we can keep about 1 billion files which will occupy several TB of space.Q: should we do it for roots as well?
Note: filenames can also be reduced.
Disadvantages:
Beta Was this translation helpful? Give feedback.
All reactions