zitadel/migrations/cockroach/V1.41__index_max_seq.sql
2021-04-22 15:06:23 +00:00

3 lines
130 B
SQL

use eventstore;
CREATE INDEX IF NOT EXISTS max_sequence on eventstore.events (aggregate_type, aggregate_id, event_sequence DESC);