php - using JSON ValueObject vs MySQL rows -


hey guys i'm having dilemma devising logic laravel application i'm developing , use advice.

i have eloquent models , b needs arbitrary meta data. meta data not updated may change in properties/ characteristics , might want "searchable"( decided). better store meta data eloquent model table key/value row

e.g. pseudo table

----------------------- |key|value|relation id| ----------------------- 

or store serialized valueobject/ json

e.g. pseudo table

------------------ |relation id|json| ------------------ 

please note using pre 5.7 using json column types in mysql no go!


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -