What is difference between storing data in a blob, vs. storing a pointer to a file?

后端 未结 5 1043
醉酒成梦
醉酒成梦 2020-12-13 00:54

I have a question about the blob data type in MySQL.

I read that the data type can be used to store files. I also read that an alternative is to store

5条回答
  •  清歌不尽
    2020-12-13 01:35

    The better approach is to store your file in the filesystem folder and point to their paths through a varchar field in the database. One of the drawbacks of saving files in the database is slowing it or reducing its performance.

提交回复
热议问题