[ad_1]
So, I am building multilingual webstore on Laravel 9.x. I’m creating database structure for my project, and I am at the point where I need to implement several languages.
Here’s my idea
I’ve created structure like:
ID: 1
Title: [ { "en" : "Title"}, { "fr" : "Titre" } ]
Content: [ { "en" : "Content"}, { "fr" : "Contenu"} ]
I will get data like that:
echo json_decode($data, true)['en']['title'];
And now I’m wondering, if the performance (with content with about 7k characters per language) will be much worse than solution like:
ID: 1
Title_En: "Title"
Title_Fr: "Titre"
Content_En: "Content"
Content_Fr: "Contenu"
[ad_2]