Re: Whats faster? text files or mysql?
| From: | David T-G | Date: | Thu, 22 Apr 2004 11:00:09 +0000 |
| Subject: | Re: Whats faster? text files or mysql? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-184205@lists.php.net to get a copy of this message | ||
Andrew --
..and then Andrew Fenn said...
%
% I have two text files with two rows of data on each line sperated by a tab for about 20 lines in
each file. Would it be faster accessing this data by putting it in a mysql table?
For something so small I'd go with a text file unless you happen to
already really know and love your database server -- and it's not doing
much anyway. The real time savings will come in your programming and
maintenance rather than in file access, so do whatever is easiest for
you.
My guess is that a straight file, even under something as bad as Windows
on an ATA disk, will be faster because of the overhead of talking to the
database; DBs shine when they have tons of data, not ounces.
HTH & HAND
:-D
--
David T-G
davidtg@justpickone.org
http://justpickone.org/davidtg/ Shpx gur
Pbzzhavpngvbaf Qrprapl Npg!