diff --git a/resources/durablestore_postgres.sql b/resources/durablestore_postgres.sql index 83eefa9..a2c5993 100644 --- a/resources/durablestore_postgres.sql +++ b/resources/durablestore_postgres.sql @@ -35,3 +35,6 @@ CREATE TABLE IF NOT EXISTS states_store CREATE INDEX IF NOT EXISTS idx_states_store_persistence_id ON events_store(persistence_id); CREATE INDEX IF NOT EXISTS idx_states_store_version_number ON events_store(version_number); ); + +CREATE INDEX IF NOT EXISTS idx_states_store_persistence_id ON states_store(persistence_id); +CREATE INDEX IF NOT EXISTS idx_states_store_version_number ON states_store(version_number);