I have a question: I have a set of files to make available for download. There is no tree, the file name is already clear, etc.
I have two opportunities to retrieve the file list:
- Place all files in a folder, scan the file and exit the list. And it has the advantage of easily by following the addition of new files (you stick in the folder, and it's good).
- Create a table that indexes all the files, then make a call out the basic list. A little more complicated to maintain thereafter, add an entry for each database file, etc.
My question is mainly in terms of speed: do a scan of directory which will actually be heavier than a call basis, or equivalent?
Bookmarks