mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-21 06:21:39 +03:00
0c21100892
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2687 GitOrigin-RevId: 9fd1c9bdfdf8de1e0d39333368ec799ae92a9e71
11 lines
328 B
SQL
11 lines
328 B
SQL
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'
|
|
;
|