We're not talking huge numbers here, but lets say an average company is going to get 5-20 new jobs a day into its shop.
Each job may have some images.
Aware is going to generate several attachments over the course of the job.
There's an Estimate, an Invoice, etc. that get printed as PDFs and attached to the job.
200 days per year so lets say 2000 jobs per year.
20,000 jobs in 10 year lifespan.
What strategy do you use to organize the filesystem for all these various docs & images that need to get stored?
And, we've all done the tests...
IF NOT EXISTS (some calculated directory path) THEN CREATE_DIR (another calc path).
And of course this gets done in several places...
1st time you add an image, the dir may not be there.
1st attachment, the dir may not be there.
If chances are that any job is going to need the \AttachmentDir at some point anyway, why not just go ahead and ALWAYS create that Directory/SubDir structure in the FS WHEN THE JOB IS CREATED - and then you don't ever need to check and have all that redundant code in the sub-processes.
So, if its 20,000 folders in the \AwareIM\Tomcat\webapps\AwareIM\Jobs\ directory, then is 40,000 ok? 100,000 ok?
just wondering...