Re: Storing images in MySQL bad idea, performance-wise?
| From: | Andy | Date: | Mon, 08 Jul 2002 22:49:22 +0000 |
| Subject: | Re: Storing images in MySQL bad idea, performance-wise? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-106194@lists.php.net to get a copy of this message | ||
if the images are not to big I would recommend saving them to blobs. It
saves you a lot of work, since you have to think about lots of stuff. Even a
garbage collector should be programmed since there is not a transaction
possibility between FS and DB.
Andy
"René fournier" <rene@smartslitters.com> schrieb im Newsbeitrag
news:D8A91334-92C2-11D6-B0D7-0003931DAC94@smartslitters.com...
I'm working on a simple content management system that uses PHP and
MySQL for updating a web site's text (stored in a MySQL database). (The
PHP scripts that do the updating (my stuf) live on one web server, the
actual DB data to be updated (my client's stuff) live on another.) So
far, I've only had to he able to update the text content of a
site--therefore, I've only had to bother to store textual data in the
client's DB. But now the client wants to be able to upload/change/delete
certain pictures on their web site--using my CMS tool--so I am faced
with the following problem:
Do I store all such images in the DB? (Which I understand reduces
performance.)
Or do I--somehow--store the images as files on the client's web server?
And if so, how? (Because my PHP scripts are being executed on a
different server.)
...Rene
---
René Fournier,
rene@smartslitters.com
Toll-free +1.888.886.2754
Tel +1.403.291.3601
Fax +1.403.250.5228
www.smartslitters.com
SmartSlitters International
#33, 1339 - 40th Ave NE
Calgary AB T2E 8N6
Canada