Skip to content

Commit 1b2001a

Browse files
sdilTochemey
andauthored
Update resources/durablestore_postgres.sql
Co-authored-by: Arsene <[email protected]> Signed-off-by: Mohamad Fadhil <[email protected]>
1 parent 0d98428 commit 1b2001a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: resources/durablestore_postgres.sql

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,6 @@ CREATE TABLE IF NOT EXISTS states_store
3232
shard_number BIGINT NOT NULL,
3333

3434
PRIMARY KEY (persistence_id, version_number)
35-
CONSTRAINT unique_persistence_id UNIQUE (persistence_id)
35+
CREATE INDEX IF NOT EXISTS idx_states_store_persistence_id ON events_store(persistence_id);
36+
CREATE INDEX IF NOT EXISTS idx_states_store_version_number ON events_store(version_number);
3637
);

0 commit comments

Comments
 (0)