RE: [PHP] Whats faster? text files or mysql?
| From: | Mark Cubitt | Date: | Tue, 20 Apr 2004 13:17:11 +0000 |
| Subject: | RE: [PHP] Whats faster? text files or mysql? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-183976@lists.php.net to get a copy of this message | ||
I'm not sure but I think it would depend on the programming language and
with php File I/O is slower then database (mySql anyway).
Where as Perl would probably be quicker with the text file.
I could be wrong though
Regards
Mark Cubitt
> -----Original Message-----
> From: Travis Low [mailto:travis@dawnstar.com]
> Sent: 20 April 2004 14:12
> To: php-general@lists.php.net
> Subject: Re: [PHP] Whats faster? text files or mysql?
>
>
> Isn't the database kept in a file? Why would that file be faster
> than a plain
> text file?
>
> cheers,
>
> Travis
>
> Jay Blanchard wrote:
> > [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.
> >
>
> --
> Travis Low
> <mailto:travis@dawnstar.com>
> <http://www.dawnstar.com>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>