Answer the question
In order to leave comments, you need to log in
How and where is it better to store user data?
The site has a friends module. (add remove from friends)
You need to display the number of new friend requests all the time.
How and where is it better to store user data?
I think to store in memkeshe, with each new request to increase the counter. Is it right? No?
P/S development is done on yii2
Answer the question
In order to leave comments, you need to log in
If we are talking about high loads: Memkesh loses data on restart. Here, either store in the memcache and fill them again when the system / memcache is restarted, or store them in redis (I would do this).
In general - anywhere you can, you can at least in the same user table in MySQL - the main thing is that there is enough performance.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question