zitadel/cmd/setup/11/cockroach/create_index.sql

8 lines
188 B
MySQL
Raw Normal View History

CREATE INDEX IF NOT EXISTS ca_fill_idx ON eventstore.events (
event_sequence DESC
, instance_id
) STORING (
id
, creation_date
, created_at
) WHERE created_at IS NULL;