From 38777b478ebd20b4d95a366e5a128ef6ea07792b Mon Sep 17 00:00:00 2001 From: Elio Bischof Date: Mon, 4 Mar 2024 07:56:48 +0100 Subject: [PATCH] perf: filter events by instance ids (#7489) fix: filter events by instance ids --- internal/eventstore/repository/sql/query.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/eventstore/repository/sql/query.go b/internal/eventstore/repository/sql/query.go index 6cd0672e46..145f168d52 100644 --- a/internal/eventstore/repository/sql/query.go +++ b/internal/eventstore/repository/sql/query.go @@ -221,7 +221,7 @@ func eventsScanner(useV1 bool) func(scanner scan, dest interface{}) (err error) } func prepareConditions(criteria querier, query *repository.SearchQuery, useV1 bool) (string, []any) { - clauses, args := prepareQuery(criteria, useV1, query.InstanceID, query.ExcludedInstances) + clauses, args := prepareQuery(criteria, useV1, query.InstanceID, query.InstanceIDs, query.ExcludedInstances) if clauses != "" && len(query.SubQueries) > 0 { clauses += " AND " }