Answer the question
In order to leave comments, you need to log in
What database to use for messages on a web resource?
What database to use for posts on the site. Messages are displayed in dialogs like VKontakte. If you use the mysql database of the standard structure (Id from whom / Id to whom / Text / Send time / status) then when there will be 5,000,000 100,000,000 messages, the selection from the database will take a long time, or is it not? Are there more suitable bases for messages?
Answer the question
In order to leave comments, you need to log in
Are you sure you will have 5 quadrillion records in the table? Or how did you calculate it? Do not make me laugh!
In addition, you can always shard the data.
Calculate the load, at least approximately, how many visitors you have at the peak, + what% growth, how many of them use chat, average dialing speed, display the number of requests per hour/minute/second, after that you will think about what to do, I suspect that the real load in the end it won't.
And do not forget about the necessary keys for selections, this is the main thing.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question