mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 09:22:43 +03:00
6 lines
434 B
MySQL
6 lines
434 B
MySQL
|
-- 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);
|