Do you think it's a good idea to save billions of images into Database?

前端 未结 4 1924
忘掉有多难
忘掉有多难 2021-01-05 10:16

Recently, I and my colleagues, we are discussing how to build a huge storage systems which could store billions a pictures which could searched and download quickly.

4条回答
  •  温柔的废话
    2021-01-05 10:24

    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.

提交回复
热议问题