Reputation: 379
I have a website which displays atleast 90 to 100 images. For better performance, I want to know where to store these images ? is it better to store in mySQL database or in website's images folder.
Upvotes: 1
Views: 126
Reputation: 8571
Though your question does not contain detailed information, I'll try to answer,
But for performance first understand your requirement,
if you want to display 100 images on a single page and all at a time then understand what quality of image is required and enough for user. Instead of using very large size images use lossless and lossy compression algorithms which will give you upto 90% reduction in image size which I think will help you in your case
if you want to just store the images then again compression will help you on filesystem
if you can afford CDN(content delivery network), then you dont have to worry about image performance. CDN providers will take care of that thing
Try using browser plugins like pagespeed,GTMetrics etc. to find out suggestions about your website to improve it further.hope this helps.
Upvotes: 3