mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 01:12:56 +03:00
ef2278f9c7
https://github.com/hasura/graphql-engine-mono/pull/2083 GitOrigin-RevId: b5748424c7b685a0bad2117adfe0eb189e40197c
6 lines
434 B
SQL
6 lines
434 B
SQL
-- This index is needed because when there's an ON CASCADE DELETE trigger in `hdb_catalog.hdb_cron_events`
|
|
-- which deletes the invocations along with the cron event. The `hdb_cron_event_invocation_logs` table
|
|
-- is joined using the `event_id` column and without an index on this column, the deletes take a really
|
|
-- long time.
|
|
CREATE INDEX hdb_cron_event_invocation_event_id ON hdb_catalog.hdb_cron_event_invocation_logs (event_id);
|