August 7, 200818 yr I read this earlier and it shows a way of keeping images in a MySQL database. I was wondering, in the context of a photoblog or gallery site, if keeping the images in a database would speed or slow the site compared to just keeping them in folders?
August 7, 200818 yr Keeping them in folders will be faster ... by keeping them (or some) in MySQL you can create some private/restricted access to them.
August 7, 200818 yr It might not be noticably slower if the database server was up to scratch but I can't imagine that it would be any faster. Do the big galleries like photobucket, flickr etc do it? If it was faster they probably would do?
August 7, 200818 yr Author it also occurred to me that if they were in the database, search engines would not find them, only the pages they are included in. or am I wrong?
August 7, 200818 yr Storing images in the db can also make it get very big, very quickly. You're better off storing the images in a folder and storing the url of the image in the database.
Create an account or sign in to comment