gentics / mesh-incubator

Project which is home for planned enhancements for Gentics Mesh
3 stars 0 forks source link

Rework local binary storage #19

Open philippguertler opened 5 years ago

philippguertler commented 5 years ago

Binaries are currently stored on the filesystem in a folder structure where the sha512 checksum is split into 8 characters and used for the folders. This was made to distribute the count of folders in the filesystem.

However with 8 characters the amount of folder is still very high. We should 2 folders with 2 characters each. This will result in a maximum of 256 per level and a total of 65536 folders. This should be enough.

philippguertler commented 5 years ago

This applies to the local binary storage and to the image cache.