0

Should I use Boolean and store images in MySQL database or should I store images somewhere in web space?

example: /images

Please help.

Pang
  • 9,564
  • 146
  • 81
  • 122
UDAY SARKAR
  • 1
  • 1
  • 3
  • store images on web sever or any server which delivers your site static content . and store image paths in mysql – Prathamesh Rasam Mar 26 '15 at 04:22
  • okay but why i shouldn't use `Boolean ` – UDAY SARKAR Mar 26 '15 at 04:32
  • the decision will be based on no of images and site traffic , if its low then you can use boolean , but if you have high traffic site with larger images then it will degrade DB performance , if you keep your file in static content server or use any CDN servers then performance will be good and images get cached on browser and CDN based on URL you stored in DB – Prathamesh Rasam Mar 26 '15 at 04:37

0 Answers0