V
V
vadimstroganov2015-11-12 21:04:00
Ruby on Rails
vadimstroganov, 2015-11-12 21:04:00

Rails, Postgres, Redis and likes/designs?

Hello! I look towards the gem https://github.com/davidcelis/recommendable
But I can't figure it out. This is where Redis is used (I'm not familiar with it), and I don't quite understand how everything happens.
All likes and dislikes that are placed are recorded in Redis. But as I understand it, they will not be stored there forever?
Do you need to somehow transfer this information over time, for example, to postgres? Please explain..
At the moment I use the gem https://github.com/ryanto/acts_as_votable for likes, on Postgres, but it turns out to be quite a load on the server..

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vsuhachev, 2015-11-13
@vadimstroganov

From the documentation for this gem:
The background task is needed to update links within the Redis store. Or you can call the update manually (see davidcel.is/recommendable/#manually-generating-rec... )
UPD: In the end, it turned out that everything is stored in Redis

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question