What column type should be used to store serialized data in a mysql db?

前端 未结 8 1607
余生分开走
余生分开走 2020-12-08 01:45

What column type should be used to store serialized data in a mysql db? I know you can use varbinary, blob, text. What\'s considered the best and why?

Edit: I unders

8条回答
  •  无人及你
    2020-12-08 02:46

    I found:

    varchar(5000)
    

    to be the best balance of size/speed for us. Also, it works with the rails 3 serialize data (varbinary) was throwing serialize errors intermittently.

提交回复
热议问题