RE: [PHP] Whats faster? text files or mysql?
| From: | William Lovaton | Date: | Wed, 21 Apr 2004 15:44:47 +0000 |
| Subject: | RE: [PHP] Whats faster? text files or mysql? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-184143@lists.php.net to get a copy of this message | ||
Hi Jay,
El mar, 20-04-2004 a las 07:52, Jay Blanchard escribió:
> [snip]
> 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?
> [/snip]
>
> Sounds like the perfect opportunity to set up a test! File I/O is always
> slower.
I/O is always slow, but it is even slower when it is done through a
network. It is always faster accessing a file on the hard disk than
accessing it through the network.
If you don't need to index the information and make complex queries, a
text file on the web server hard disk is just fine.
-William