Answer the question
In order to leave comments, you need to log in
What is the best way to store user status update data JSON or MSQL table?
I have a need to store the user's update status, or rather, the history of its changes. How can I best implement this.
The first option is to store this data in the text field of the MSQL table as json, but there is a problem with records that can be several thousand, or even hundreds of thousands.
Now just such a system has been implemented.
And since this violates the normality of the table, there is in part a more correct version, and for the first time definitely more optimized. Create a table where data about each update of the user's status will be stored, the last entry will be the current status and have something like this structure.
the question is will it be more optimized in the long run? after all, if we have 100k users and each will have 10k records, won't MYSQL die from this stuff?
Answer the question
In order to leave comments, you need to log in
the question is will it be more optimized in the long run? after all, if we have 100k users and each will have 10k records, won't MYSQL die from this stuff?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question