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

Add index for delayed_job_guid in jobs table #2684

Merged

Conversation

kathap
Copy link
Contributor

@kathap kathap commented Feb 16, 2022

  • With adding an index to delayed_job_guid, the query time can be improved significantly.
  • This will improve SELECT * FROM "jobs" WHERE ("delayed_job_guid" = ... ) LIMIT 1; queries.

Thanks for contributing to cloud_controller_ng. To speed up the process of reviewing your pull request please provide us with:

  • A short explanation of the proposed change:

  • An explanation of the use cases your change solves

  • Links to any other associated PRs

  • I have reviewed the contributing guide

  • I have viewed, signed, and submitted the Contributor License Agreement

  • I have made this pull request to the main branch

  • I have run all the unit tests using bundle exec rake

  • I have run CF Acceptance Tests

@kathap kathap marked this pull request as draft February 16, 2022 15:19
* With adding an index to delayed_job_guid, the query time can be improved significantly.
* This will improve SELECT * FROM "jobs" WHERE ("delayed_job_guid" = ... ) LIMIT 1; queries.
@kathap kathap force-pushed the add-idx-to-delayed-jobs-guid branch from ae3d953 to 311290d Compare February 16, 2022 15:33
@kathap kathap marked this pull request as ready for review February 16, 2022 15:43
@philippthun philippthun merged commit 322163d into cloudfoundry:main Feb 16, 2022
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.

3 participants