Skip to content

Commit

Permalink
Turn cascade off, it refreshes too many tables
Browse files Browse the repository at this point in the history
  • Loading branch information
rsanheim committed Jun 30, 2021
1 parent 7d0d611 commit f4a4db5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/reporting_pipeline/matview.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class Matview < ActiveRecord::Base
def self.refresh
ActiveRecord::Base.transaction do
ActiveRecord::Base.connection.execute("SET LOCAL TIME ZONE '#{Period::REPORTING_TIME_ZONE}'")
Scenic.database.refresh_materialized_view(table_name, concurrently: false, cascade: true)
Scenic.database.refresh_materialized_view(table_name, concurrently: false, cascade: false)
end
end
end
Expand Down

0 comments on commit f4a4db5

Please sign in to comment.