fix: query optimisations (#1949)

* index on events for changes

* check for current sequence before filter events
This commit is contained in:
Silvan
2021-07-01 16:21:24 +02:00
committed by GitHub
parent 2037d7d41c
commit 15ae8be3c3
8 changed files with 91 additions and 15 deletions

View File

@@ -0,0 +1 @@
CREATE INDEX changes_idx ON eventstore.events (aggregate_type, aggregate_id, creation_date) USING HASH WITH BUCKET_COUNT = 10;