]> cat aescling's git repositories - mastodon.git/commit
Improve performance of follow recommendation scheduler (#16159)
authorClaire <claire.github-309c@sitedethib.com>
Wed, 5 May 2021 20:04:52 +0000 (22:04 +0200)
committerGitHub <noreply@github.com>
Wed, 5 May 2021 20:04:52 +0000 (22:04 +0200)
commitd9ae3db8d5543cf0b7fa44186c191c9bb2472d23
tree512309009b33d99557dbfbc7d2513b1b3792bf60
parent351c74459084ccffce1333b57c2af9a6b55cac8d
Improve performance of follow recommendation scheduler (#16159)

Express follow_recommendations in terms of account_summaries rather than
accounts, integrate filters that are unconditionally used, and materialize
the resulting view.

This should result in the bulk of the computation being performed only once
instead of **once per recommendation language**.
app/models/follow_recommendation.rb
app/workers/scheduler/follow_recommendations_scheduler.rb
db/migrate/20210505174616_update_follow_recommendations_to_version_2.rb [new file with mode: 0644]
db/schema.rb
db/views/follow_recommendations_v02.sql [new file with mode: 0644]