I am developing a web application about books. We all knows that books have different category. So, this category is basic on a sequence of number, for example, 200 = computer related, 800 = history. Each book is beyond to one category only.
Here is the question. I have a category list, it may expand in the future. For example, new technology is appear, and new category will be created. So, what should I store this category? In a database? or a simple XML file? Because it is not alter all the time, so, I am think will it become a waste to store in database? thz u.
For me, the best decision is to use the database for storing. You don’t know what changes will follow your project after time. Also if the data are into the database, you can easy update them and add related additional info. But it depends. You know better what kind of project you have and what technologies you are using.
Maybe XML is also a good choice. You can relatively easy to add new data and to selects the current one and then to use them in your project.
But my advice is to use Database. The categories are not too much data to be stored. It’s far more flexible and powerful.