Skip to content

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Betts committed Jun 15, 2023
1 parent 5b04a37 commit 488a019
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
DROP INDEX IF EXISTS report.group_bubbled_type_count_created_week_group_id_idx;
DROP INDEX IF EXISTS report.group_bubbled_type_counts_created_week_group_id_idx;

REFRESH MATERIALIZED VIEW report.group_bubbled_type_count;
REFRESH MATERIALIZED VIEW report.group_bubbled_type_counts;

ANALYSE report.group_bubbled_type_count;
ANALYSE report.group_bubbled_type_counts;

-- A unique index is mandatory for concurrent updates used in the refresh
CREATE UNIQUE INDEX group_bubbled_type_count_created_week_group_id_idx
ON report.group_bubbled_type_count (group_id, sub_type, shared, created_week);
CREATE UNIQUE INDEX group_bubbled_type_counts_created_week_group_id_idx
ON report.group_bubbled_type_counts (group_id, sub_type, shared, created_week);

0 comments on commit 488a019

Please sign in to comment.