-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Wipe deleted Workspace (+ their WorkspaceInstances) at some point #11378
Comments
Is the goal to reduce storage cost or optimize query times? If the latter, did we consider partitioning the table by year? |
There are several motivations. I updated and listed them above. ☝️ 🙏 |
Dropping assignment as I'm not actively working on this besides talks with downstream clients on how this might affect them and how to mitigate that. |
Assigned to Milan after discussion here. |
Re-opening as we'll want to follow-up with other db records, as well as lower the retention period. |
We're currently not deleting Prebuilds for Workspaces which we're purging, this leaves zombie records. We'll need to do 2 things:
To actually start deleting prebuild records - PR, we will need the following:
|
We've now purged all Workspaces and Workspace Instances from 2 years ago and we've cought up against the current rate workspaces entering this purging window - dashboard. #13234 switched purging to after 1 year from content deletion. We're also now purging Prebuilds and related records. However, we'll need to identify records which did not get automatically cleaned up and delete these manually as well. |
Motivation
someField?: string
) just because we once in 2018 had a period where we would not set those field. This is an attempt to get rid of those variance to at least have a chance to streamline the codeSolutions
Add 3rd "purged" state
Currently our Workspace deletion model has two phases:
This issue proposes to introduce a 3rd state:
Remarks
Beyond the pure technical aspect, this affects all of downstream systems as well: We need to make sure that they can handle not getting the total view over all workspaces. 🧘
The text was updated successfully, but these errors were encountered: