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 a scope for filtering on link report links #5241

Merged
merged 1 commit into from Jan 10, 2020
Merged

Conversation

@thomasleese
Copy link
Contributor

thomasleese commented Jan 10, 2020

This allows us to filter on link report links which can be deleted. The link table has exceeded 10 GB and is the biggest Whitehall table so we need to find a way of reducing the size. We've decided that links with a status of ok which were created over 6 months ago can be deleted.

Once this is deployed I will manually delete these links by doing Link.deletable.delete_all and then after that set up some sort of automated process to do this regularly.

Trello Card

This allows us to filter on link report links which can be deleted. The
link table has exceeded 10 GB and is the biggest Whitehall table so we
need to find a way of reducing the size. We've decided that links with a
status of `ok` which were created over 6 months ago can be deleted.
@thomasleese thomasleese force-pushed the old-link-reports branch from 3e36761 to 8647a7e Jan 10, 2020
@thomasleese thomasleese merged commit a3f7364 into master Jan 10, 2020
3 checks passed
3 checks passed
continuous-integration/jenkins/branch This commit looks good
Details
continuous-integration/jenkins/publishing-e2e-tests Publishing end-to-end tests succeeded on Jenkins
Details
continuous-integration/jenkins/security No security issues found
Details
@thomasleese thomasleese deleted the old-link-reports branch Jan 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.