The issue of database design.
I need to create an item with multiple versions of the same value, for example, in a store for a store in a multilingual store.
Say I have a product
CREATE TABLE product id INT, name VARCHAR(64), description SMALLTEXT, whatever BOOL, another INT;
and translation table
CREATE TABLE product_language product_id INT, language_id INT, name VARCHAR(64), descripton SMALLTEXT;
Now my question is ... is the product
table reasonable or not? Most stores will only have one language, so it makes sense to store the name and description in the default language in the product
table, to avoid JOINs
when there is only one language in the system? Or will it give me headaches that I cannot foresee?
source share