fix: improve performance on db insert (#1649)

This commit is contained in:
Livio Amstutz
2021-04-22 17:06:23 +02:00
committed by GitHub
parent 9d778fa67c
commit 06281b5ccb
2 changed files with 4 additions and 3 deletions

View File

@@ -0,0 +1,2 @@
use eventstore;
CREATE INDEX IF NOT EXISTS max_sequence on eventstore.events (aggregate_type, aggregate_id, event_sequence DESC);