madMoney
11-28-2002, 09:31 PM
I do a lot of web coding, and often have to switch between using flat files and databases depending on the server, language, etc...
When I use PHP or CF, I use databases because of the amazing support built into both languages (and the organization of databases in general), but when I use Perl, I almost always use text files (DBI is too in depth for quick scripts imo, and I don't use Perl enough to get really familiar with it).
My question is, what are the advantages, speed and HD space -wise, of databases over text files? I understand that databases are much more extensible and organized, especially for really big collections of data, and are usually faster due to indexing, but is this always true even for very small amounts of data? Is the ease of text files (simplicity) ever worth it? when is it not?
When I use PHP or CF, I use databases because of the amazing support built into both languages (and the organization of databases in general), but when I use Perl, I almost always use text files (DBI is too in depth for quick scripts imo, and I don't use Perl enough to get really familiar with it).
My question is, what are the advantages, speed and HD space -wise, of databases over text files? I understand that databases are much more extensible and organized, especially for really big collections of data, and are usually faster due to indexing, but is this always true even for very small amounts of data? Is the ease of text files (simplicity) ever worth it? when is it not?