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

Do not populate AccountSummaries and FollowRecommendation views on migration #16173

Merged
merged 1 commit into from
May 7, 2021

Conversation

ClearlyClaire
Copy link
Contributor

Materializing those views can take a while, and they are currently refreshed anyway each time they are actually used, in the FollowRecommendationsScheduler.

…gration

Materializing those views can take a while, and they are currently refreshed
anyway each time they are actually used, in the FollowRecommendationsScheduler.
@ClearlyClaire ClearlyClaire marked this pull request as ready for review May 7, 2021 12:39
@Gargron Gargron merged commit d8e0c8a into mastodon:main May 7, 2021
@tribela
Copy link
Contributor

tribela commented May 9, 2021

It seems to make FollowRecommendationsScheduler fail due to refresh with CONCURRENTLY param

ClearlyClaire added a commit to ClearlyClaire/mastodon that referenced this pull request May 9, 2021
Since mastodon#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.
Gargron pushed a commit that referenced this pull request May 9, 2021
…ws (#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.
chrisguida pushed a commit to Start9Labs/mastodon that referenced this pull request Feb 26, 2022
…gration (mastodon#16173)

Materializing those views can take a while, and they are currently refreshed
anyway each time they are actually used, in the FollowRecommendationsScheduler.
chrisguida pushed a commit to Start9Labs/mastodon that referenced this pull request Feb 26, 2022
…ws (mastodon#16189)

Since mastodon#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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants