chat server: what's the best(optimized) way to save a conversation log
问题 I'm building a simple chat server in java , where users can have private conversations with each other. I want to save those conversation at a server level(not on client side) so I can list them to the users as a conversation log service. I'm also using MySQL as a database in my software. What I'm looking is an optimized way to save those conversations and also a fast way to list them later. So far I've thought on 2 implementations. using the MySQL database and a) save the conversation in a