The work that I might be asked to work upon (if I clear the interview, of course) is surely messed up (at least this is what I think right now). There are 28 states in India. So we have 28 folders for them (numbered as 0, 1, 2, 3, and so on).
Now each of these State is geographically and politically divided into Districts and so we have about 780 of such folders named 01, 02, 03 (for districts in state 0), named 11,12,13 (for districts in state 1) and so on.
Each of these districts are further divided into sub-divisions (and probably 6057 folders) named as 01_1, 01_2, 01_3 and so on for subdivisions of district 1 in State 0.
Get this idea? Oh and then we have sets of md files in all of these folders
I have been informed that they have about 13k folders with almost 45k of md files in them.
The earlier programmer, has kept all folders directly under the content directory and so we have something similar to the following screenshot (I do not have the exact data as of now, right now I have a snapshot based on what I have been briefed) –
My opinion is that it might be easier it we have folders that are grouped together. I had a discussion with the earlier guy and he said that he followed the above approach (of having everything in separate folders) just because these URLs would be shorter – much shorter than if we followed a nested approach.
I do realize that the URL might get longer with the nested structures, but wont it be easier to write codes and generate Statistical Data from the folders arranged in Directory-Subdirectory way? This is how I would like to arrange the things, if they would be better to go with -
Which one would be your preference and why ?
As the community is experienced here, I thought, it would be better to ask for your opinions - so that I might be better prepared for my interview scheduled coming Saturday.
Thank you once again for taking out time to read and help me.