Re: Images : Store in dB or disk?
| From: | Jason Wong | Date: | Thu, 16 Jan 2003 07:42:16 +0000 |
| Subject: | Re: Images : Store in dB or disk? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-131823@lists.php.net to get a copy of this message | ||
On Thursday 16 January 2003 13:23, Bobby Patel wrote:
> I AGREE that storing images strored on disk is a valid approach PROVIDED
> that you only need 1 image per page, but if you need to grab a bunch at a
> time, I do beleieve that storing the actual file on the dB is faster.
>
> I would like to hear from the list, of people that have worked with images
> and PHP. I just started with images, so I just want to take the right path.
I would say develop your application so that it both stores the images in the
DB _and_ copies it to the filesystem -- it should only require a few more
lines of code. Then have a flag at runtime which decides whether to retrieve
images from DB or from filesystem. Once you have enough data you can easily
determine which method is faster and subsequently comment/remove the
insertion code for the slower method.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
Be sure to evaluate the bird-hand/bush ratio.
*/