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 a5e1f71 commit ff1a61d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ REFRESH MATERIALIZED VIEW report.group_activity;
ANALYSE report.group_activity;

-- A unique index is mandatory for concurrent updates used in the refresh
CREATE UNIQUE INDEX group_activity_created_week_group_id_idx ON report.group_activity (created_week, group_id);
CREATE UNIQUE INDEX group_activity_created_week_group_id_idx
ON report.group_activity (group_id, created_week);
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ REFRESH MATERIALIZED VIEW report.group_bubbled_activity;
ANALYSE report.group_bubbled_activity;

-- A unique index is mandatory for concurrent updates used in the refresh
CREATE UNIQUE INDEX group_bubbled_activity_created_week_group_id_idx ON report.group_bubbled_activity (created_week, group_id);
CREATE UNIQUE INDEX group_bubbled_activity_created_week_group_id_idx
ON report.group_bubbled_activity (group_id, created_week);
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ REFRESH MATERIALIZED VIEW report.group_bubbled_counts;
ANALYSE report.group_bubbled_counts;

-- A unique index is mandatory for concurrent updates used in the refresh
CREATE UNIQUE INDEX group_bubbled_counts_group_id_idx ON report.group_bubbled_counts (group_id);
CREATE UNIQUE INDEX group_bubbled_counts_group_id_idx
ON report.group_bubbled_counts (group_id);

0 comments on commit ff1a61d

Please sign in to comment.