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

Added JobExecution indexes to improve query performances #3526

Merged
merged 2 commits into from
Mar 9, 2022

Conversation

Coduz
Copy link
Contributor

@Coduz Coduz commented Mar 9, 2022

This PR adds two indexes on the job_job_execution table to improve performance while performing common queries.

Related Issue
None

Description of the solution adopted
Added two indexes on:

job_job_execution on scope_id, job_id, started_on
job_job_execution on scope_id, job_id, ended_on

to support common display of JobExecution.

Screenshots
None

Any side note on the changes made
Set the default sorting for JobExecution to be on startedOn DESCENDING

@Coduz Coduz added the Enhancement This PR/Issue improves an part of Kapua label Mar 9, 2022
@Coduz Coduz merged commit 80972c3 into eclipse:develop Mar 9, 2022
@Coduz Coduz deleted the fix-jobExecutionIndexes branch April 6, 2022 08:35
@Coduz Coduz restored the fix-jobExecutionIndexes branch April 6, 2022 08:35
@Coduz Coduz deleted the fix-jobExecutionIndexes branch April 6, 2022 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement This PR/Issue improves an part of Kapua
Projects
Development

Successfully merging this pull request may close these issues.

2 participants