As a rule, I thought it was always better to store images in the file system and refer to it through an entry in the database. However, I am trying to optimize my db design, and I have a few questions.
My images are all very small thumbnails in black and white (not gray, but true B&W) and have a size of 70x70. If we take the images (which are basically a 2D array of 1 and 0), it can be saved as binary data, which will be approximately 600 bytes.
So my question is whether requesting 600 bytes stored in db is faster than requesting a link, followed by access to the file system; assuming there are many "image" requests.
Does anyone have any experience in this area?
If that matters, I use MySQL and MonetDB (separately, but the question is the same for them).
Thanks a lot, Brett
source share