-
Notifications
You must be signed in to change notification settings - Fork 68
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
Improve performance of OpenStackCloudEventAssetRootVolumeIngestor and GenericCloudEventAssetRootVolumeIngestor actions #1303
Conversation
{ | ||
"name": "idx_provider_identifier", | ||
"columns": [ | ||
"provider_identifier" |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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)"
There was a problem hiding this comment.
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
…ub.com/eiffel777/xdmod into cloud-add-index-provider-account-asset
…-add-index-provider-account-asset
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
Checklist: