Skip to content

Commit

Permalink
Revert "Benchmark view refreshes #104"
Browse files Browse the repository at this point in the history
This reverts commit 8d448fa.
  • Loading branch information
Aidan Macdonald committed Aug 6, 2021
1 parent 157d109 commit e7d7eb6
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ WHERE
CREATE OR REPLACE FUNCTION refresh_matviews() RETURNS INTEGER AS $$
DECLARE
matview RECORD;
start_time TIMESTAMPTZ;
BEGIN
RAISE NOTICE 'Refreshing base metaviews';
-- other matviews rely on contactview_metadata, which is a matview
Expand All @@ -91,9 +90,7 @@ BEGIN
CONTINUE;
END IF;
RAISE NOTICE 'Refreshing %', matview.matviewname;
start_time := clock_timestamp();
EXECUTE format('REFRESH MATERIALIZED VIEW CONCURRENTLY %I', matview.matviewname);
RAISE INFO 'Finished refreshing % took %', matview.matviewname, clock_timestamp() - start_time;
END LOOP;
RAISE NOTICE 'Materialized views refreshed.';
RETURN 1;
Expand Down

0 comments on commit e7d7eb6

Please sign in to comment.