i want to get a better idea about storing images in a database. mostly around the performance.
i want to have a database of images. i know that it would be inefficient for querying if it had many fields to search through, but how would performance be impacted if i kept the images in a separate table (table with imageID and Image only). so that when querying the table i could use the main table, but i would only pull back the images from the images table when i need to.
of course this is bad practice and the ideal would be to keep the image in a directory and store that image's filepath in the database.
remember the filepath (string variable) that refers to the image location will likely be longer than the imageID.
it makes sense that it would be quicker to search though the database for database related images, rather than jumping between database and host directory.
what do you guys think?