File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed
spring-modulith-events/spring-modulith-events-jdbc/src/main/resources Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -7,4 +7,6 @@ CREATE TABLE IF NOT EXISTS EVENT_PUBLICATION
7
7
PUBLICATION_DATE TIMESTAMP (9 ) WITH TIME ZONE NOT NULL ,
8
8
SERIALIZED_EVENT VARCHAR (4000 ) NOT NULL ,
9
9
PRIMARY KEY (ID)
10
- )
10
+ );
11
+ CREATE INDEX IF NOT EXISTS EVENT_PUBLICATION_LISTENER_ID_SERIALIZED_EVENT_IDX ON EVENT_PUBLICATION (LISTENER_ID, SERIALIZED_EVENT);
12
+ CREATE INDEX IF NOT EXISTS EVENT_PUBLICATION_COMPLETION_DATE_IDX ON EVENT_PUBLICATION (COMPLETION_DATE);
Original file line number Diff line number Diff line change @@ -6,5 +6,7 @@ CREATE TABLE IF NOT EXISTS EVENT_PUBLICATION
6
6
SERIALIZED_EVENT VARCHAR (4000 ) NOT NULL ,
7
7
PUBLICATION_DATE TIMESTAMP (6 ) NOT NULL ,
8
8
COMPLETION_DATE TIMESTAMP (6 ) DEFAULT NULL NULL ,
9
- PRIMARY KEY (ID)
10
- )
9
+ PRIMARY KEY (ID),
10
+ INDEX EVENT_PUBLICATION_LISTENER_ID_IDX (LISTENER_ID),
11
+ INDEX EVENT_PUBLICATION_COMPLETION_DATE_IDX (COMPLETION_DATE)
12
+ );
Original file line number Diff line number Diff line change @@ -7,4 +7,6 @@ CREATE TABLE IF NOT EXISTS event_publication
7
7
publication_date TIMESTAMP WITH TIME ZONE NOT NULL ,
8
8
completion_date TIMESTAMP WITH TIME ZONE ,
9
9
PRIMARY KEY (id)
10
- )
10
+ );
11
+ CREATE INDEX IF NOT EXISTS event_publication_listener_id_serialized_event_idx ON event_publication (listener_id, serialized_event);
12
+ CREATE INDEX IF NOT EXISTS event_publication_completion_date_idx ON event_publication (completion_date);
You can’t perform that action at this time.
0 commit comments