Best way to store chat messages in a database? [closed]
There’s nothing wrong with saving the whole history in the database, they are prepared for that kind of tasks. Actually you can find here in Stack Overflow a link to an example schema for a chat: example If you are still worried for the size, you could apply some optimizations to group messages, like adding … Read more