Materializing those views can take a while, and they are currently refreshed
anyway each time they are actually used, in the FollowRecommendationsScheduler.
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
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