I would like to know. Which one is better solution.
This is an I/O question. My web application store file in file system. But i want to know which solution should i approach. Store all files in one folder or store each file in split folder. The folder will be based on user id.
Example : User A have User ID 1 User Z have user ID 10
So in my file structure, there have 2 folder which is folder name "1" and folder name "10".And each folder have maybe like 10- 50 images file.
Im thinking about performance. Which one is more better.? Let say the user id already reach 1 million. Is there any problem to have 1 million folder in windows server.?
Any idea,?
Thanks.