Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove first two unused indexes #376

Merged
merged 10 commits into from
May 10, 2024
Merged
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
SET statement_timeout = 0;

--bun:split
DROP INDEX CONCURRENTLY message_receivertimestamp_idx;

Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
SET statement_timeout = 0;

--bun:split
DROP INDEX IF EXISTS message_pubsubtopic_idx;

--bun:split
DROP INDEX IF EXISTS message_sort_idx;

--bun:split
DROP INDEX IF EXISTS message_recvts_shouldexpire_idx;

--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 IF NOT EXISTS message_receivertimestamp_idx ON public.message(receiverTimestamp);

Loading