mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-19 21:41:44 +03:00
01d8a37706
Co-authored-by: Rakesh Emmadi <12475069+rakeshkky@users.noreply.github.com> GitOrigin-RevId: 9b8afb502e94dd371a8596ccde97d023bd2344a9
12 lines
373 B
SQL
12 lines
373 B
SQL
DROP INDEX hdb_catalog.event_log_locked_idx;
|
|
DROP INDEX hdb_catalog.event_log_delivered_idx;
|
|
DROP INDEX hdb_catalog.event_log_created_at_idx;
|
|
|
|
/* This index powers `fetchEvents` */
|
|
CREATE INDEX event_log_fetch_events
|
|
ON hdb_catalog.event_log (locked NULLS FIRST, next_retry_at NULLS FIRST, created_at)
|
|
WHERE delivered = 'f'
|
|
and error = 'f'
|
|
and archived = 'f'
|
|
;
|