events-backend: add index for event topics

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2024-09-20 11:14:06 +02:00
parent 8241289427
commit 359ab5936f
@@ -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 => {