zitadel/migrations/cockroach/V1.50__changes_idx.sql
Silvan d5626db71b
fix(migration): enable hash shared index flag (#1954)
* index on events for changes

* check for current sequence before filter events

* fix(migration): enable hash shared indexes feature
2021-07-01 18:44:00 +02:00

7 lines
193 B
PL/PgSQL

BEGIN;
SET experimental_enable_hash_sharded_indexes=on;
CREATE INDEX changes_idx ON eventstore.events (aggregate_type, aggregate_id, creation_date) USING HASH WITH BUCKET_COUNT = 10;
COMMIT;