You are here: Re: A BILLION pictures...how do they do it? « PHP Programming Language « IT news, forums, messages
Re: A BILLION pictures...how do they do it?

Posted by Jerry Stuckle on 06/12/07 15:09

cbmeeks wrote:
> I am writing my own family photo sharing site that I hope to take
> public (like so many others). Anyway, currently, when the user
> uploads a picture, I store the picture outside my htdocs folder and
> record the image details in a MySQB db. When you browse the picture,
> I read the record and build the image by sending an image/jpeg header.
>
> Seems to work but I am a little disappointed with performance.
> Granted I am running on a really old machine which might be the
> reason. lol
>
> Seriously though, if I take this public and get extremely lucky and
> millions of photos are uploaded, would this be the best method?
>
> I've read pros and cons of storing images in a database. I've read
> about Flickr, SmugMug, Photobucket having HUNDREDS of millions to over
> a BILLION images stored!
>
> Obviously, load balancing plays into this but what other secrets do
> you think they use?
>
> One thing I worry about is my file system. I have something like:
>
> pix
> -----user1
> -------------thumbs
> -----user2
> -------------thumbs
>
> etc...
>
> Any pointers would be appreciated.
> Thanks
>
> cbmeeks
>

First of all, you should be asking this in a database newsgroup, not a
PHP one. And preferably a newsgroup aimed at the database you're using.

I store pictures in databases. It works quite well. Takes some tuning,
but I find it provides good performance.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация