A
A
Alexander Muxalich2015-04-10 12:23:46
PHP
Alexander Muxalich, 2015-04-10 12:23:46

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

1 answer(s)
F
FanatPHP, 2015-04-10
@muxalich

and what is the problem of "constantly joining the table with news"? Do electrons erase their backs?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question