Re: database or includes?
| From: | phobo | Date: | Wed, 20 Dec 2000 19:36:41 +0000 |
| Subject: | Re: database or includes? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-5368@lists.php.net to get a copy of this message | ||
if the database is only going to have one row, then it seems silly to use
the database and much wiser to use include. if however, you are going to
have many rows, thus needing lots of seperate include files, then it might
be easier to *manage* to use a database.
in short, an include would have to be much quicker than using a db.
siggy
----- Original Message -----
From: "Peter Van Dijck" <peter@vardus.com>
To: <php-db@lists.php.net>
Sent: Thursday, December 21, 2000 4:06 AM
Subject: [PHP-DB] database or includes?
> Hi,
> I'm building a site, the template has a identifypage.php section. That
> identifies the page and then does one of the following (I want to find out
> which is faster):
> a) includes a text file that defines about 20 variables (title, metatags,
> content, ...) for the page.
> b) or it selects all those from 1 row in the database.
>
> My question:
> comparing including those vars to getting them from a dbase? I can see if
I
> get them from a dbase the site may slow down when hit heavily... Any ideas
> on what's the best way to go? Would there be any significant difference? I
> estimate this site getting semi-popular (e.g. up to maybe 20.000 pageviews
> a day but more like 2000)
> Peter
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>