Re: Re: Storing images
| From: | David Otton | Date: | Sat, 15 Nov 2003 21:41:00 +0000 |
| Subject: | Re: Re: Storing images | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-169766@lists.php.net to get a copy of this message | ||
On Sat, 15 Nov 2003 13:01:21 -0800 (PST), you wrote:
>--- Kim Steinhaug <kim@steinhaug.com> wrote:
>> Well as far as I can see you have 2 options.
>>
>> a) Store them directly on disc
>> b) Store them in a database (eg. mySQL)
>>
>> I would think that a) is the best way without doubt
>
>I usually take this option myself, but when you are creating an
>application to run on a large cluster of servers, option b is the better
>choice in many cases. It eliminates having to maintain server affininty
>with your load balancer or having to replicate the data among all the
>servers.
My first thought would be to shunt the images sideways to a seperate server,
rather than backwards into a database. YMMV, of course.
(Weighing in on the original post: images on the filesystem, metadata in the
database. Of course, it all depends on the application - it's a
piece-of-string question.)