Answer the question
In order to leave comments, you need to log in
How bases react to increase in records?
If you work with data from php and every hour there will be about 3000 more records in the database. - Chat.
Let's assume about +70,000 per day, respectively, for 10 days about +700,000
Let's assume this will work on Amazon or DO or somewhere else in one of the cloud bases, with a 1.5gz 1ram machine.
Answer the question
In order to leave comments, you need to log in
If this is a chat, then it is not clear why to keep the archive in one table. Clean up once a day. Or in the trash, or in the backup.
I would keep the "tail" of the chat (message flow) of public rooms in the memory of the socket server.
And saved in base - only necessary through parsing.
For dialogues - would use base with procedural selection.
Once a day - table backup.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question