I am currently working on a XML-based CMS that saves data in chunks called "items". These can be used on the website to display content.
Now, at the moment I have one separate XML file for every item. Since most pages on that website use about three to four of these items, a rather small website with e.g. 20 pages has about 100 different items. And therefor the same number of xml files in my /xml/items folder.
Would it be preferable to store all that data in one single items.xml file or is my current approach the better one?
Pro Single File - xml/items.xml
- Less files (maybe starts to become a performance issue when talking about thousands of items on a larger website.)
- Less disk access (especially in the administration with a list of all items)
Pro Multiple Files - xml/items/*.xml
- Faster to access one single item since only one small file needs to be parsed