zitadel/migrations/cockroach/V1.41__index_max_seq.sql

3 lines
130 B
MySQL
Raw Normal View History

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