Skip to content

Add test output deletion trigger function#3835

Open
williamjallen wants to merge 1 commit into
Kitware:masterfrom
williamjallen:testoutput-delete-trigger
Open

Add test output deletion trigger function#3835
williamjallen wants to merge 1 commit into
Kitware:masterfrom
williamjallen:testoutput-delete-trigger

Conversation

@williamjallen

Copy link
Copy Markdown
Collaborator

Our current build-focused deletion process is inherently slow for test output deletion because the database cannot efficiently determine the set of tests sharing the same output, but not being part of the builds being deleted. This PR attempts to resolve the issue by creating a delete trigger on the build2test table. When tests are deleted, the trigger deletes related testoutput rows if those rows are not shared with other tests. This approach completely avoids needing to go through the builds relation.

Our current build-focused deletion process is inherently slow for test output deletion because the database cannot efficiently determine the set of tests sharing the same output, but not being part of the builds being deleted.  This PR attempts to resolve the issue by creating a delete trigger on the build2test table.  When tests are deleted, the trigger deletes related testoutput rows if those rows are not shared with other tests.  This approach completely avoids needing to go through the builds relation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant