Large Text and Images In SQL

后端 未结 7 2194
栀梦
栀梦 2021-02-08 19:02

Is it a good idea to store large amounts of text (eg html pages) inside your SQL database? Or is it a better idea to store it as html files in the filesystem?

The same g

7条回答
  •  暖寄归人
    2021-02-08 19:51

    It's a matter of size. It depends on how big your images/text really are.

    Storing these values in a DB has many advantages over a file-system based approach, but at a certain point it becomes inefficient. For example, I wouldn't store extremely high-resolution imagery in a DB.

    So it's a question of degree, and that, in turn, means the answer depends on your HW resources and your system's architecture. So I don't believe there's one right answer to your question. Maybe you could tell us more about the details of what you're trying to store and what your servers look like.

提交回复
热议问题