Hi i am making a server using Netty and MySQL.
My server's primary task is to record user's info, and chats.
I am very new to database and I am stuck at writing the schema for chats.
I need to record the chat room number, sender ID, reciever ID, content, and timestamp for each chat sent from the client. I think about 50 chats for each chat room will be sent. And at least 100 chat rooms will be created daily.
I am thinking of making one table for every chat room created. However, this will make about 3000 tables every month. If I recorded all the chat rooms in one table, the table will be very long. I am guessing retrieving records from that table will take a lot of resources.
This part is where I am stuck. What is the normal practice when recording chats?