A
A
Alexey Maksimov2016-04-19 18:40:44
PHP
Alexey Maksimov, 2016-04-19 18:40:44

What is the best way to remember user ratings?

Hi all!
There is a system for rating users of various projects, and the question arose of how best to remember the ratings of the user so that when he visits an already rated project, he is shown the rating that he had already put before. Each time pulling the base and checking if there is his assessment there - it seems to be fat. There is Redis, all sessions are stored in RAM, but there is not enough memory to store this information there either. What do you think?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2016-04-19
@Palehin

Don't skimp on matches. Pull the base) + caching

L
lega, 2016-04-19
@lega

when visiting an already assessed project, he was shown the assessment that he had already set earlier
If there are not many estimates, then all estimates for the project can be stored in the project itself, then there will be no extra reading requests for this.
(Well, or vice versa, if users rarely like, then store all ratings in the user).
All other options will probably require additional. requests.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question