perf: filter events by instance ids (#7489)

fix: filter events by instance ids
This commit is contained in:
Elio Bischof 2024-03-04 07:56:48 +01:00 committed by GitHub
parent 437c834a40
commit 38777b478e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 "
}