Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Announcement recommendations #52

Closed
wants to merge 2 commits into from
Closed

Conversation

hugoabonizio
Copy link
Member

Using recommender.cr to generate the recommendations, this PR adds:

  • recommendations table that links announcements
  • Recommender worker that generates recommendations for all arcticles

TODO

  • Re-generate recommendations after a publish
  • Find the best place to bootstrap the worker when the recommendations table is empty (maybe an initializer?)
  • Write some specs

Fixes #51.

div.nav-previous
a href="/announcements/#{older.id}"
span.meta-nav Next
span.post-title = older.title
Copy link
Member

@veelenga veelenga Oct 13, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may need to remove those unneeded methods from Announcement model, adjust controller and specs.


def perform
clear_recommendations
announcements = Announcement.all
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sooner or later this will make memory overflow... I'm not an expert in Recommender, but we need to find a way to do this without full table load.

@veelenga veelenga closed this May 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Recommend similar announcements
2 participants