Manthan Mallikarjun
06/20/2022, 9:08 PMHello world #welcome #message #other
and store it. Later they should be able to quickly search by the hashtag. However the string is also editable and I can forsee it being edited multiple times in its lifetime. I was initially thinking of having a messages
table and a message_tags
table. However I realize that since the string can be edited and #welcome
can easily become #howdy
, keeping the message_tags
table in sync might be difficult. In this case am I better off just putting a tags
array column on the messages
table and indexing it?Jose Maria CL
06/20/2022, 9:31 PMtags
array column on the messages
table and indexing it
”
I think that each column should have a single responsibilityManthan Mallikarjun
06/20/2022, 9:56 PMManthan Mallikarjun
06/20/2022, 9:56 PMManthan Mallikarjun
06/20/2022, 9:56 PM