I can easily do my work with text files and database both. But i want to know which one is good in terms of response time. If text files is not the best solution for fastest result then which database is best, again in terms of response time. I can trade off size for response time. Please help me.
Share
Databases are databases for a very good reason, they are HIGHLY optimized for a) Storing your data in an efficient manner and b) Retrieving it in an efficient manner.
You CANNOT perform queries on a text file, so there is no sorting, ordering, optimizing etc.
As far as security goes, a text file is not password protected and someone may easily view the contents of the file, this is not the case with a database. The list is endless of course, and you really should be using a database!
If you are looking for a solution SIMILAR to a text file, try SQLite, http://www.sqlite.org/