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 harvest_error_harvest_object_id_idx #514

Merged
merged 1 commit into from
Oct 11, 2022

Conversation

FuhuXia
Copy link
Contributor

@FuhuXia FuhuXia commented Oct 10, 2022

Table harvest_error needs an index on column harvest_object_id. Without it it takes too long to delete a harvest_object.

BEGIN;
EXPLAIN (analyze,buffers,timing)
DELETE FROM harvest_object WHERE id='2dce01ff-5168-400b-9698-3643a8dc3369';
ROLLBACK;

Before adding the index:

...
Trigger for constraint harvest_object_error_harvest_object_id_fkey: time=201.459 calls=1

After adding the index:

...
Trigger for constraint harvest_object_error_harvest_object_id_fkey: time=0.362 calls=1

@FuhuXia FuhuXia force-pushed the harvest_error_harvest_object_id_idx branch from 5516f90 to 41a620b Compare October 10, 2022 16:47
@amercader amercader merged commit d84ae94 into ckan:master Oct 11, 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.

2 participants