-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jon Betts
committed
Jun 15, 2023
1 parent
5b04a37
commit 488a019
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
10 changes: 5 additions & 5 deletions
10
...rom_scratch/04_activity_counts/01_groups/05_group_bubbled_type_counts/02_initial_fill.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |