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

Improve performance of OpenStackCloudEventAssetRootVolumeIngestor and GenericCloudEventAssetRootVolumeIngestor actions #1303

Merged

Conversation

eiffel777
Copy link
Contributor

The action xdmod.OpenStackCloudEventAssetRootVolumeIngestor is taking over two minutes to complete when ingesting data from the IU Jetstream system. Looking into it more there are two main performance issues, the first is that it selects all rows from the event table and the second is a join on a column that was not indexed. Adding an index to that column and making changes to the sql query so it does not select all rows from the event table result in a action now taking between 1 and 2 seconds when tested on xdmod-dev.

Tests performed

Tested on xdmod-dev.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project as found in the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@eiffel777 eiffel777 added bug Bugfixes Category:Cloud Cloud Realm labels May 4, 2020
@eiffel777 eiffel777 added this to the 9.0.0 milestone May 4, 2020
@eiffel777 eiffel777 self-assigned this May 4, 2020
{
"name": "idx_provider_identifier",
"columns": [
"provider_identifier"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't resource_id also be part of this index?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since presumably this is here to improve the performance of the following join?

a.resource_id = ev.resource_id AND a.provider_identifier = CONCAT('root-vol-', i.provider_identifier)"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jpwhite4 It's been added

@eiffel777 eiffel777 merged commit 20ffcfc into ubccr:xdmod9.0 May 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bugfixes Category:Cloud Cloud Realm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants