mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-02 11:39:12 +00:00
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:
parent
6d21dd12a4
commit
e770ba8e0e
@ -56,4 +56,8 @@ where serviceType in ('Snowflake', 'Redshift', 'BigQuery');
|
||||
-- Update all rows in the consumers_dlq table to set the source column to '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);
|
||||
@ -72,4 +72,8 @@ WHERE serviceType IN ('Snowflake', 'Redshift', 'BigQuery');
|
||||
-- Update all rows in the consumers_dlq table to set the source column to '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);
|
||||
Loading…
x
Reference in New Issue
Block a user