Hello there!

I have a question about saving some file types in my MySQL database instead of in a certain folder. I'm building a webshop, and the images that are going to be displayed are only about 20KB each. When I save them into a database table (base 64), the database record is only about 2KB.

The question(s) is (are):
  • Is it a good idea to save such small files as (for example) base 64 in my database, or is it better (performance-wise) to save them in a certain folder and load them from there?
  • At which file size will my database performance start dropping if I save images and pdf's (and more) in my database instead of a specific folder?

Thanks for the help/advice!