Answer the question
In order to leave comments, you need to log in
What is the best way to share news in messages?
Hello, tell me how best to share the news in messages? Add the news id to the database and then calculate it every time joinLeft with the news table or add a fully formed html code of the news to the message field.
Cons:
In the first case, if the news is changed, its latest version will appear in the messages.
In the second case, you do not need to constantly join the table with the news.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question