« Previous | Next » 

Revision 91528d68

ID91528d689448a2af09bc6a894bcdea2bf99b0ba6
Parent 1dcc1e25
Child bfb1c233

Added by Bastian Waidelich over 6 years ago

[BUGFIX] Prevent creation of too many directories for resources

Currently resource files are stored by splitting the ``SHA1`` hash
into chunks of 5 characters in order to prevent the creation of too
many files per directory (for performance reasons).
This has been implemented with the new "Multi-Storage / Multi-Target
Resource Management" (see Ia2b47b4070a2dfabf4833bf1f0f3967ba3b032a7).

The drawback of the current implementation is that it leads to the
creation of a directory per file which strains the file system, too.

With this change a persistent resource will no longer be stored in::

Data/Persistent/c828d/0f88c/e197b/e1aff/7cc2e/5e86b/12442/41ac6/c828d0f88ce197be1aff7cc2e5e86b1244241ac6

But::

Data/Persistent/c/8/2/8/c828d0f88ce197be1aff7cc2e5e86b1244241ac6

leading to a tremendously reduced amount of folders to be created.

This also adjusts the path of published resources from::

/_Resources/Persistent/c828d/0f88c/e197b/e1aff/7cc2e/5e86b/12442/41ac6/The-File-Name.ext

to::

/_Resources/Persistent/c/8/2/8/c828d0f88ce197be1aff7cc2e5e86b1244241ac6/The-File-Name.ext

Note: This is only true, if the ``subdivideHashPathSegment`` is set
for the corresponding ``PublishingTarget``. Otherwise the path is not
changed.

Related: FLOW-294
Releases: master, 3.0
Change-Id: I3cbab75d5c6d8819dfcbb26c93c921d6dc27213c

  • added
  • modified
  • copied
  • renamed
  • deleted