zitadel/cmd/setup/11/11_fetch_events.sql
Silvan 9af066d53c fix(setup): steps 10 and 11 (#5987)
* fix(step10): count amount of wrong_events manually

* fix(step11): create index for better performance
2023-06-08 08:11:50 +02:00

12 lines
169 B
SQL

SELECT
id
, creation_date
FROM
eventstore.events
WHERE
created_at IS NULL
ORDER BY
event_sequence DESC
, instance_id
LIMIT $1
FOR UPDATE