diff --git a/migrations/cockroach/V1.50__changes_idx.sql b/migrations/cockroach/V1.50__changes_idx.sql index 2b56eff40e..307041c4af 100644 --- a/migrations/cockroach/V1.50__changes_idx.sql +++ b/migrations/cockroach/V1.50__changes_idx.sql @@ -1 +1,6 @@ -CREATE INDEX changes_idx ON eventstore.events (aggregate_type, aggregate_id, creation_date) USING HASH WITH BUCKET_COUNT = 10; \ No newline at end of file +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;