Is this JSON as data field in the db?

Hello I would like to ask how this is implemented in the database? this is a product description in shein and I want to do it in my project
No description
4 Replies
Jochem
Jochem•16mo ago
there is no way to tell from a screenshot how that is implemented generally, you would store that kind of information in a database though
fort
fort•16mo ago
correct and im looking for someone that knew how that is done haha yeah but it is table-like description of a product gets me curious on how it is done I was thinking a OneToOneField in django but im still confused on raisedbrow
Jochem
Jochem•16mo ago
It really depends on what info you need to store. Do all the products have the same metadata? Or does it differ per category? How do you need to access that data? Do you need to search or filter or is it enough to just display it? What database are you using? There's several options, all have drawbacks and advantages, and which you pick depends wholly on the product you're building and the team you're building it with
ErickO
ErickO•16mo ago
so you were looking for a shein dev? 🤔 bit of a long shot Like Jochem said, you would have to see if all those things are present in every listing on shein, my guess is that they're not which leaves you with essentially 2 options: Use a JSON field where you store that data per listing Use an EAV model
Want results from more Discord servers?
Add your server