Skip to content

Commit b7bc383

Browse files
committed
refs #41281, #42782, add index for mailing relate table for better performance
1 parent b6292bf commit b7bc383

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

sql/civicrm.mysql

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1235,7 +1235,7 @@ CREATE TABLE civicrm_mailing (
12351235
,
12361236
PRIMARY KEY ( id )
12371237

1238-
, INDEX UI_is_hidden(
1238+
, INDEX index_is_hidden(
12391239
is_hidden
12401240
)
12411241

@@ -1324,12 +1324,15 @@ CREATE TABLE civicrm_mailing_job (
13241324
,
13251325
PRIMARY KEY ( id )
13261326

1327-
, INDEX UI_start_date(
1327+
, INDEX index_start_date(
13281328
start_date
13291329
)
1330-
, INDEX UI_is_test(
1330+
, INDEX index_is_test(
13311331
is_test
13321332
)
1333+
, INDEX index_job_type(
1334+
job_type
1335+
)
13331336

13341337
,
13351338
CONSTRAINT FK_civicrm_mailing_job_mailing_id FOREIGN KEY (mailing_id) REFERENCES civicrm_mailing(id) ON DELETE CASCADE,

0 commit comments

Comments
 (0)