Re: Should I put pictures into a database?
| From: | Robin Vickery | Date: | Thu, 29 Nov 2007 09:27:53 +0000 |
| Subject: | Re: Should I put pictures into a database? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-265205@lists.php.net to get a copy of this message | ||
On 28/11/2007, AmirBehzad Eslami <behzad.eslami@gmail.com> wrote:
> On Wednesday 21 November 2007 03:14:43 Ronald Wiplinger wrote:
> > I have an application, where I use pictures. The size of the picture is
> > about 90kB and to speed up the preview, I made a thumbnail of each
> > picture which is about 2.5 to 5kB.
> > I use now a directory structure of ../$a/$b/$c/<pictures>
>
> I rather to store images on the file-system, since database is another
> level over the file-system. However, I still need to store a pointer for
> every image into the database. This leads to storing the file names
> twice: one time in file-system, and one time in db.
> Isn't this redundancy?
Think of it as a foreign key.
-robin