【发布时间】:2014-01-23 09:33:27
【问题描述】:
我还有下一个疑问:
在 EAV 数据结构中,您可以在实体或关联类型的表中找到属性。
例如:
目录产品实体
| entity_id | entity_type_id | attribute_set_id | type_id | sku | has_option | ....
| 1 | 4 | 34 | simple | 0912132 | 0 |
catalog_product_entity_datetatime
| value_id | entity_type_id | attribute_id | store_id | entity_id | value
| 1 | 4 | 71 | 0 | 1 | NULL
catalog_product_entity_decimal
| value_id | entity_type_id | attribute_id | store_id | entity_id |value
| 1 | 4 | 69 | 1 | 1 | 29.009
您可以在平面表catalog_product_entity中找到属性sku,在表catalog_product_entity_datatime和中找到属性_id 71和69 catalog_product_entity_decimal
为什么实体表中有属性sku?是因为优化的原因吗?
如果我想提高一个属性的负载,我可以将它插入到实体表中吗?实体表中属性的合理数量是多少?
【问题讨论】:
标签: database magento optimization entity-attribute-value