Magento 是否跨 table 类型存储 EAV 数据?
Does Magento store EAV data across table types?
假设您在 Magento 中有一个属性为 foo
的产品。一种产品的 foo 值为“1”,而另一种产品的 foo 值为 "bar".
Magento 是否将 "bar" 值存储在 catalog_product_entity_varchar
中,将条值存储在 catalog_product_entity_int
中?或者 foo 是否总是隐式存储在 _varchar 中,因为预计该值可能具有(在这种情况下)混合值?
Magento 将根据属性的后端类型存储值。如果后端类型是 varchar,则所有值将存储在 catalog_product_entity_varchar.
中
Magento 的 EAV 系统使用极端归一化。
属性值存储在单独的 table 中,按数据类型(datetime、decimal、int、text、varchar)划分,并键入各种实体 ID 号。
属性的存储位置取决于后端定义。您可以在 backend_type
列的 eav_attribute
table 中找到此信息。
假设您在 Magento 中有一个属性为 foo
的产品。一种产品的 foo 值为“1”,而另一种产品的 foo 值为 "bar".
Magento 是否将 "bar" 值存储在 catalog_product_entity_varchar
中,将条值存储在 catalog_product_entity_int
中?或者 foo 是否总是隐式存储在 _varchar 中,因为预计该值可能具有(在这种情况下)混合值?
Magento 将根据属性的后端类型存储值。如果后端类型是 varchar,则所有值将存储在 catalog_product_entity_varchar.
中Magento 的 EAV 系统使用极端归一化。
属性值存储在单独的 table 中,按数据类型(datetime、decimal、int、text、varchar)划分,并键入各种实体 ID 号。
属性的存储位置取决于后端定义。您可以在 backend_type
列的 eav_attribute
table 中找到此信息。