Re: Should I put pictures into a database?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 28/11/2007, AmirBehzad Eslami <behzad.eslami@xxxxxxxxx> 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux