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
This commit is contained in:
Silvan 2021-07-01 18:44:00 +02:00 committed by GitHub
parent 62b4df8c09
commit d5626db71b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1 +1,6 @@
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; CREATE INDEX changes_idx ON eventstore.events (aggregate_type, aggregate_id, creation_date) USING HASH WITH BUCKET_COUNT = 10;
COMMIT;