Skip to content

Commit 652971e

Browse files
committed
magento/magento2#: Add a new index for cron_schedule table
1 parent a95a465 commit 652971e

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

app/code/Magento/Cron/etc/db_schema.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,9 @@
2828
<column name="scheduled_at"/>
2929
<column name="status"/>
3030
</index>
31+
<index referenceId="CRON_SCHEDULE_SCHEDULE_ID_STATUS" indexType="btree">
32+
<column name="schedule_id"/>
33+
<column name="status"/>
34+
</index>
3135
</table>
3236
</schema>

app/code/Magento/Cron/etc/db_schema_whitelist.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@
1212
},
1313
"index": {
1414
"CRON_SCHEDULE_JOB_CODE": true,
15-
"CRON_SCHEDULE_SCHEDULED_AT_STATUS": true
15+
"CRON_SCHEDULE_SCHEDULED_AT_STATUS": true,
16+
"CRON_SCHEDULE_SCHEDULE_ID_STATUS": true
1617
},
1718
"constraint": {
1819
"PRIMARY": true
1920
}
2021
}
21-
}
22+
}

0 commit comments

Comments
 (0)