Skip to content

134 add additional index for getJobsByStatus call - #135

Open
JesKingDev wants to merge 1 commit into
magemojo:masterfrom
JesKingDev:bugfix/134-sql-performance
Open

134 add additional index for getJobsByStatus call#135
JesKingDev wants to merge 1 commit into
magemojo:masterfrom
JesKingDev:bugfix/134-sql-performance

Conversation

@JesKingDev

@JesKingDev JesKingDev commented Feb 26, 2023

Copy link
Copy Markdown
Contributor

Overview

As the cron_schedule table grows before it is cleaned, the performance of the getJobsByStatus call degrades due to a missing table index.

Resolves #134

Testing

Prior to pulling this down, run the following SQL against your db and notice that no index is used.
CleanShot 2023-02-26 at 12 36 08@2x

After installing, run the same query
CleanShot 2023-02-26 at 12 37 25@2x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SQL Performance degredation as cron_schedule grows

1 participant