Re: 20K photos
| From: | Niel Archer | Date: | Sun, 29 Apr 2007 21:30:59 +0000 |
| Subject: | Re: 20K photos | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-43511@lists.php.net to get a copy of this message | ||
Hi
> Imagine that you want to put some 20000 historical photos On display in your website , you
> use PHP and MySQL.
> Preparing a photo album with 200 photos is no problem but for 20000 photos! would you do it
> in the same way?
Yes, but I don't necessarily see the need for a db.
If you have additional information on the pictures to store, then yes,
use a db. Otherwise all the info you need is available from the files.
For small numbers I wouldn't store the filenames in the db. For 20K, I
would.
Decide on how many images per page, then use SELECT with LIMIT to pull
out a page's worth of files and show the page. Back/Next tell the page
what offset to use for the LIMIT clause.
Niel