When you have a TEXT field in MySQL or PostgreSQL, should you put it in a separate table?

后端 未结 3 1489
独厮守ぢ
独厮守ぢ 2021-01-18 12:38

I\'ve heard that if you have a table with a TEXT column that will hold a large chunk of text data, it\'s better for performance to move that column into a separate table and

3条回答
  •  礼貌的吻别
    2021-01-18 13:00

    From the MySQL Manual:

    For a table with several columns, to reduce memory requirements for queries that do not use the BLOB column, consider splitting the BLOB column into a separate table and referencing it with a join query when needed.

提交回复
热议问题