Increased amount of SELECTs from eventstore.events2
Author: ashepCreated Oct 29, 2025Updated Oct 1, 2026
Hello!
I am experiencing a sudden spike in the following DB requests.
SELECT created_at, event_type, "sequence", "position", payload, creator, "owner", instance_id, aggregate_type, aggregate_id, revision FROM eventstore.events2 WHERE instance_id = $1 AND aggregate_type = $2 AND aggregate_id = $3 AND event_type = ANY($4) ORDER BY "sequence"About 2 QPS, fetching about 8K rows per second. This notably decreased the performance of the DB and Zitadel, especially CreateSession requests.
It is worth noticing that Zitadel isn't experiencing increased traffic or whatever else. Literally, nothing has changed. It just started to perform those requests at a high rate without any obvious (to me) reason.
Zitadel version: 3.2.3 DB: Postgres 17
Thank you for any help and suggestions on how to fix that.
Source: zitadel/zitadel