|
|
|
|
|
by tgarma1234
3574 days ago
|
|
I don't agree with that because you really just query the keys for users that have the attribute in question without inserting a ton of nulls and having to work out changes to the attributes when you realize "I wish I would have thought of that column" several iterations later. Spending time up front agonizing about the "overt schema" strikes me as an anti-pattern when you are likely going to pivot later and it's super convenient to just use the same tables as you have been using all along. New users are different in that case but not so totally different so just but the new attributes into the column keyed on "pivot1" or whatever. |
|
Im not saying that you should not use JSONB for that (I probably would too for that example), Im just saying there are more ways to design your data storages.