When is using MySQL BLOB recommended?

后端 未结 5 1682
萌比男神i
萌比男神i 2020-11-30 07:58

I\'m coding an application that will be uploading and deleting many files, i usually just move the files to a folder in the server naming them with the row unique id

5条回答
  •  孤街浪徒
    2020-11-30 08:21

    Well, it's a bit old, but this article makes a few decent arguments for BLOB storage: http://www.dreamwerx.net/site/article01.

    While not a performance gain per se, having your images and whatnot in a DB as opposed to in a directory should also eliminate problems with hotlinking (assuming this is a web app that's publicly available).

提交回复
热议问题