]> cat aescling's git repositories - mastodon.git/commit
Fix FollowRecommendationsScheduler failing because of unpopulated views (#16189)
authorClaire <claire.github-309c@sitedethib.com>
Sun, 9 May 2021 08:39:29 +0000 (10:39 +0200)
committerGitHub <noreply@github.com>
Sun, 9 May 2021 08:39:29 +0000 (10:39 +0200)
commitf9c2d1b9a1c1e3f6b3d79b6d2edefe4f4f5cf2a6
treeba486e2468a75af280113c3128d0c1c2af3e0524
parent4d31cef19db9b719540e07030e5eb6d32b20234a
Fix FollowRecommendationsScheduler failing because of unpopulated views (#16189)

Since #16173, `account_summaries` and `follow_recommendations` are not
populated at creation time, which causes concurrent refresh to fail.

As we currently only use those materialized views right after explicitly
refreshing them, this commit changes refreshes to not be performed
concurrently. This will fix the issue and ensure the refresh completes
faster while using less resources.
app/models/account_summary.rb
app/models/follow_recommendation.rb