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
Post a Comment