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

前端 未结 4 1921
忘掉有多难
忘掉有多难 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:39

    It's not a good idea. The point of a database is that you can quickly resolve complex queries to retrieve textual data. While binary data can be stored in a database, it can slow transactions. This is especially true when the database is on a separate server from the running application. In the database, store meta-data and the location/filename of the images. Images themselves should be on static server(s).

提交回复
热议问题