I have a search engine where each product item can have a thumbnail image for the summary and a larger image for the detail view.
Currently the image ids are stored as img_id and thumb_id in the Products table, and the attributes are kept in the Image table, (width, height, type) which needs a join to construct the image tag. Images are kept on a sub domain.
Products table has several million rows but not all products have images.
Should I do away with the image table and if so what method would you suggest to fetch the images?
Also there other smaller product catelogs being served on this system which have similar table structure
Thanks in advance.
I think what im looking for is here How to store images in your filesystem