-
Notifications
You must be signed in to change notification settings - Fork 3
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
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
10 changes: 5 additions & 5 deletions
10
pkg/migrations/messages/20240419172419_remove-unused-indexes.up.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,16 +1,16 @@ | ||
SET statement_timeout = 0; | ||
|
||
-- bun:split | ||
--bun:split | ||
DROP INDEX IF EXISTS message_pubsubtopic_idx; | ||
|
||
-- bun:split | ||
--bun:split | ||
DROP INDEX IF EXISTS message_sort_idx; | ||
|
||
-- bun:split | ||
--bun:split | ||
DROP INDEX IF EXISTS message_recvts_shouldexpire_idx; | ||
|
||
-- bun:split | ||
--bun:split | ||
-- Replace recvts_shouldexpire_idx with an index just on receiver timestamp | ||
-- This index is used in our data pipelines to power the data warehouse for high level analytics on network growth | ||
CREATE INDEX CONCURRENTLY message_receivertimestamp_idx ON public.message(receiverTimestamp); | ||
CREATE INDEX CONCURRENTLY IF NOT EXISTS message_receivertimestamp_idx ON public.message(receiverTimestamp); | ||
|