Nanyang Zhan wrote:
I am using ubuntu with ext3 file system.
How many files can I store inside a directory?
Is it an effect way to save all 100,000 cached files inside one
directory if it is allowed? Or will it be worth arranging these files
into sub directories to reduce the file size, to speed up web page
I cache fragments with an explicit path for the type of fragment cached
Has made it easy to clear out some fragments while keeping other if I
change the rendering of a certain piece. Like:
/show/project/ <- individual project fragments go here
/show/scenario/ <- scenario fragments go here
/related/project/ <- "relations" fragments for projects go here
/related/scenario/ <- "relations" fragments for scenario go here
along with keeping the file counts per folder lower, if I change the
"show" rendering of a model, or all models, I have a specific tree to
prune to dump those cached fragments. Same goes for the "related" tree
(which is comparatively expensive to generate versus the "show"