-
Notifications
You must be signed in to change notification settings - Fork 79
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
indexer: Add index to manifest_index table to aid deletions #911
Conversation
Query log after adding index:
|
456d15b
to
447bc38
Compare
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.
Could you please split the change to the integration package to another commit?
447bc38
to
aade6db
Compare
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.
LGTM
By deleting a broad index for space reasons ( quay@d9abe3d) I inadvertently slowed the delete manifests query due to a delete cascading to the manifest_index table and having to do a seq scan. This change adds a dedicated index for queries involving manifest_id. Signed-off-by: crozzy <joseph.crosland@gmail.com>
Add the above options to log the nested statements that are executed during test runs. Signed-off-by: crozzy <joseph.crosland@gmail.com>
1572b49
to
53a0ac8
Compare
By deleting a broad index for space reasons (
d9abe3d) I inadvertantly slowed the delete manifests query due to a delete cascading to the manifest_index table and having to do a seq scan. This change adds a dedicated index for queries involving manifest_id.