5

MySQL 商品表 90 个字段有必要拆分么

 2 years ago
source link: https://www.v2ex.com/t/821824
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  MySQL

MySQL 商品表 90 个字段有必要拆分么

  Geekerstar · 13 小时 31 分钟前 · 1532 次点击

新项目,运营人员商品表给了 70 字段,不太好进行分类拆分,非要拆只能拆成一个主表,一个详情表。考虑到后面可能会水平分表,并且有组合商品的逻辑,所以在犹豫要不要拆分。

另外,商品表中的码值是否要把码值编码和码值名称一起存?想做些冗余,避免每次查询都去翻译码值名称。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK