Storing Images : DB or File System -

前端 未结 7 1066
既然无缘
既然无缘 2020-11-29 07:00

I read some post in this regard but I still don\'t understand what\'s the best solution in my case.

I\'m start writing a new webApp and the backend is going to provi

7条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-29 07:22

    When dealing with binary objects, follow a document centric approach for architecture, and not store documents like pdf's and images in the database, you will eventually have to refactor it out when you start seeing all kinds of performance issues with your database. Just store the file on the file system and have the path inside a table of your databse. There is also a physical limitation on the size of the data type that you will use to serialize and save it in the database. Just store it on the file system and access it.

提交回复
热议问题