Skip to content
Snippets Groups Projects
Unverified Commit d8e0c8a8 authored by Claire's avatar Claire Committed by GitHub
Browse files

Do not populate AccountSummaries and FollowRecommendation views on migration (#16173)

Materializing those views can take a while, and they are currently refreshed
anyway each time they are actually used, in the FollowRecommendationsScheduler.
parent a5f91a11
No related branches found
No related tags found
No related merge requests found
class CreateAccountSummaries < ActiveRecord::Migration[5.2]
def change
create_view :account_summaries, materialized: true
create_view :account_summaries, materialized: { no_data: true }
# To be able to refresh the view concurrently,
# at least one unique index is required
......
......@@ -4,7 +4,7 @@ class UpdateFollowRecommendationsToVersion2 < ActiveRecord::Migration[6.1]
def up
drop_view :follow_recommendations
create_view :follow_recommendations, version: 2, materialized: true
create_view :follow_recommendations, version: 2, materialized: { no_data: true }
# To be able to refresh the view concurrently,
# at least one unique index is required
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment