Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more

Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Web Programming > PHP Development
User Name
Password

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 01-03-2007, 07:02 PM   #1 (permalink)
padmx82
Junior Member
 
Join Date: Jan 2007
Posts: 2
Default Image gallery question: Better to save the thumbnails in the database?

Hi, I´m currently developing an Image Gallery in PHP and MySQL.

I´m saving the images into the database (using BLOB), what I would like to know is:
Which is the best way to handle the thumbnails for the images, is it better to save the thumbnails into the database also, or generate the thumbnails every time a visitor enter the gallery?

Also, this Gallery will be in a hosting service, so I thought that is better to save the images into the database (considering the amount of storage available), am I correct or should I not save the images into the database but in a folder?

Thanks in advance
Padmx

Sorry for my english, I´m from Mexico
padmx82 is offline   Reply With Quote
Sponsored Links
Old 01-03-2007, 07:07 PM   #2 (permalink)
contractfreelancers
Junior Member
 
Join Date: Jan 2007
Location: northeast of england
Posts: 8
Default Re: Image gallery question: Better to save the thumbnails in the database?

Well, by the sounds of things the generation of said thumbnails could create for a very slow site would it not???

Unless of course you have lightning fast code... of course think people could also get annoyed waiting for these thumbnails to generate.

How about you generate the thumbnails once for each separate gallery section, but then after a while of no activity in each section have the site delete them from that unpopular section to save storage space, then, when the next person visits that section it generates them again??? this would then only ever happen once in a blue moon.....

Just a thought.. let me know if you need further clarification.
__________________
Kind Regards,

Liam Twose
CEO - Contract Freelancers
Freelancing / outsourcing for the UK
contractfreelancers is offline   Reply With Quote
Old 01-03-2007, 07:49 PM   #3 (permalink)
padmx82
Junior Member
 
Join Date: Jan 2007
Posts: 2
Default Re: Image gallery question: Better to save the thumbnails in the database?

Quote:
Originally Posted by contractfreelancers
Well, by the sounds of things the generation of said thumbnails could create for a very slow site would it not???

Unless of course you have lightning fast code... of course think people could also get annoyed waiting for these thumbnails to generate.

How about you generate the thumbnails once for each separate gallery section, but then after a while of no activity in each section have the site delete them from that unpopular section to save storage space, then, when the next person visits that section it generates them again??? this would then only ever happen once in a blue moon.....

Just a thought.. let me know if you need further clarification.

Thanks for your reply, Liam.

Regarding what you said about the speed of the site, in the gallery there will be just 5 thumbs per page (this is because the gallery is actually more like a product image slideshow), so you still think that it will be a slow site? (there will not be much users in the site, I think).


Padmx
padmx82 is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Points Per Thread View: 1.00
Points Per Thread: 11.00
Points Per Reply: 5.00



» Sponsors

» Links

» Affiliates
Web Hosting
Marketing Find
Merchant Select
SiteMap Builder
Host Compare
Dedicated Servers

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 07:33 AM.



LinkBacks Enabled by vBSEO 3.0.0 RC8
Webmaster Forums