From 359ab5936fb4f045ddf4a495520b9ce47f8a7ba7 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Fri, 20 Sep 2024 11:14:06 +0200 Subject: [PATCH] events-backend: add index for event topics Signed-off-by: Patrik Oldsberg --- plugins/events-backend/migrations/20240523100528_init.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/events-backend/migrations/20240523100528_init.js b/plugins/events-backend/migrations/20240523100528_init.js index c3b66658fd..e94c6eb8dd 100644 --- a/plugins/events-backend/migrations/20240523100528_init.js +++ b/plugins/events-backend/migrations/20240523100528_init.js @@ -48,6 +48,8 @@ exports.up = async function up(knex) { .comment( 'The IDs of the subscribers that have already consumed this event', ); + + table.index('topic', 'event_bus_events_topic_idx'); }); await knex.schema.createTable('event_bus_subscriptions', table => {