Last post Aug 16, 2010 05:49 PM by AZMatt
Aug 16, 2010 02:19 PM|mgp22|LINK
In my ASP.NET application (Windows 2008 server, IIS 7), I have customer profile photos in a sub-folder. The customer photo is displayed on their web profile using a simple html IMG tag. With regard to performance, how many files can I store in a folder
before performance starts to degrade due to seek time - the web server accessing the file system to find the specified file? I've heard general statements about using multiple sub-folders.. Right now I have about 1,200 images in the folder.
Aug 16, 2010 03:11 PM|AZMatt|LINK
There is not really an issue with how many files you can store in the directory. The real issue is how you are accessing them. Are you storing the file information in a database, or are you using some kind of logic in your code to find a specific file
Aug 16, 2010 03:42 PM|mgp22|LINK
thanks for the reply Matt - The files are simply stored in a folder on the file system, and I'm just accessing them via a <asp: Image> control
Aug 16, 2010 05:49 PM|AZMatt|LINK
OK, so the img controls are just hard-coded. In this case, your only limitations should be disk space and memory. Sorting the images out into separate directories shouldn't make any noticable performance difference.