FIX: Combined index on offset and eventTime in changeEvent table (#18922)

* fix: combined index on offset and eventTime in changeEvent table

* fix: correct syntax error in Postgres query.

* fix: correct syntax error in Postgres query.

* fix: correct syntax error in Postgres query.
This commit is contained in:
Siddhant 2024-12-05 04:44:31 +05:30 committed by GitHub
parent 6d21dd12a4
commit e770ba8e0e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 2 deletions

View File

@ -57,3 +57,7 @@ where serviceType in ('Snowflake', 'Redshift', 'BigQuery');
UPDATE consumers_dlq SET source = 'publisher'; UPDATE consumers_dlq SET source = 'publisher';
DELETE from event_subscription_entity where name = "ActivityFeedAlert"; DELETE from event_subscription_entity where name = "ActivityFeedAlert";
DROP INDEX event_time_index ON change_event;
CREATE INDEX idx_offset_event_time ON change_event (offset, eventTime);

View File

@ -73,3 +73,7 @@ WHERE serviceType IN ('Snowflake', 'Redshift', 'BigQuery');
UPDATE consumers_dlq SET source = 'publisher'; UPDATE consumers_dlq SET source = 'publisher';
DELETE from event_subscription_entity where name = 'ActivityFeedAlert'; DELETE from event_subscription_entity where name = 'ActivityFeedAlert';
DROP INDEX IF EXISTS event_time_index;
CREATE INDEX idx_offset_event_time ON change_event ("offset", eventTime);