Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

magento/magento2#: Add a new index for cron_schedule table #27391

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions app/code/Magento/Cron/etc/db_schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,9 @@
<column name="scheduled_at"/>
<column name="status"/>
</index>
<index referenceId="CRON_SCHEDULE_SCHEDULE_ID_STATUS" indexType="btree">
<column name="schedule_id"/>
<column name="status"/>
</index>
</table>
</schema>
5 changes: 3 additions & 2 deletions app/code/Magento/Cron/etc/db_schema_whitelist.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@
},
"index": {
"CRON_SCHEDULE_JOB_CODE": true,
"CRON_SCHEDULE_SCHEDULED_AT_STATUS": true
"CRON_SCHEDULE_SCHEDULED_AT_STATUS": true,
"CRON_SCHEDULE_SCHEDULE_ID_STATUS": true
},
"constraint": {
"PRIMARY": true
}
}
}
}