Re: Which costs more: connecting to a DB or accessing the file system?
| From: | mike | Date: | Fri, 21 Jun 2002 19:36:08 +0000 |
| Subject: | Re: Which costs more: connecting to a DB or accessing the file system? | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-103334@lists.php.net to get a copy of this message | ||
George,
"George Whiffen" <george@intellnet.net.uk> wrote in message
news:3D136AB7.4E796205@intellnet.net.uk...
>
> I'm not quite sure what you are trying to achieve, but if holding the
> data in a file is realistically an option i.e. your data is static, then
> why not consider holding your final output e.g. your web page/partpage
> in the file system?
For my purposes, I am not concerned with outputing dynamic web pages (that
uses a corresponding caching system), but rather parsing data that effects
code logic.
I've noticed that it is pretty popular amongst many PHP applications to
maintain script config information in a DB. This has it's advantages, but
the extra calls to the DB looks to be pretty resource heavy. What I am
trying to judge is the effectiveness of such practice.
Regards,
Michael