[ad_1]
I am building the online store. There will be a lot of records in MySQL with products. I am wondering which has a better performance:
First solution
TABLE PRODUCTS
product_ID: 1
product_name: Hoodie
product_availability: {"S":"30","M":"21","L":"1","XL":"3"}
Second solution
TABLE PRODUCTS
product_ID: 1
product_name: Hoodie
TABLE AVAILABILITY
availability_id: 1
availability_product_id: 1
availability_size: L
availability_available: 1
Which is better practise?
[ad_2]