>From a Speed and performance standpoint it’s probably a good idea for you to 
>have a hierarchical data structure for those files and break them up into 
>smaller sets.

When I was building fanatics.com I originally had all of my product images in 
one directory. As the catalogue grew to hundreds of thousands of items, 
managing the directory became a nightmare and it was very taxing for the 
operating system. Ultimately we employed a strategy to nest files by product id 
range 1-9,999, 10,000-19,999 etc. Or smaller sets depending on what you’re 
doing and how you need to manage the files.



Peter Dobbs
President | ENGINESS | P: 416.901.6151<tel:416.901.6151;118> | F: 
416.901.6150<tel:416.901.6150> | enginess.io<www.enginess.io>

This message may have been dictated and poorly interpreted by Siri. If this 
message contains any content that is offensive or unusual/confusing in anyway, 
please disregard as Siri is useful despite being incompetent.

This email and any attachments are confidential and are intended only for the 
person(s) to whom it is addressed. It you are not the addressee named above, 
any use, copying, distribution or disclosure is strictly unauthorized. If you 
have received this information in error, please delete it and any attachments 
and notify me immediately.


On Apr 11, 2020, at 2:38 PM, Fogelson, Steve <foge...@askics.net> wrote:


Hope you are all staying safe.


I have a folder that has a 100,000 plus images in it. Before I use the “Write” 
action, I would like to check to see it the file already exists.

I could use the “List Directory” action and then parse, but as I mentioned 
there are a lot of files and it would be cumbersome and slow.

I tried the “Read File” action and I get server errors if it can’t find it. I 
may be doing something wrong though.

I would prefer not to use the “Command Line” action because of its inherent 
challenges.

Any ides or suggestions how I am using “Read File” incorrectly.

Steve
Internet Commerce Solutions

________________________________
To unsubscribe from this list, please send an email to 
lists...@terascript.com<mailto:lists...@terascript.com> with "unsubscribe 
terascript-talk" in the body.


----------------------------------------
 To unsubscribe from this list, please send an email to lists...@terascript.com 
with "unsubscribe terascript-talk" in the body.

Reply via email to