-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
Procedure for the clean up of the database #2844
Comments
@chills-eclipse Yep, something we need to get back to. @amvanbaren Thoughts? |
@kineticsquid You want to move forward on eclipse/openvsx#888? |
@amvanbaren MS doesn't limit extension versions. I'd like to see what other options we have. The biggest offender is the file table. And there appear to be two API calls that could reference the table,
Are there other API calls that reference the table? I'm wondering if then consider where these API calls are coming from, we might be able to limit the size of the able. Where are calls to this API originating?
In this Gitlab issue, https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/issues/4797, @denisroy provided a dump of the access logs and I took a look at the use of the API |
@amvanbaren Now that we've completed eclipse/openvsx#888, I'm thinking we need a script to scrub and reduce the size of the file resources table. And, for safety's sake, should probably take a backup first. And given that, I'm thinking we need a read only mode, or at least a mode that disables publishing while we work on the table. Thoughts? |
Yes, now that eclipse/openvsx#1045 has been completed we can remove resource files from the |
@amvanbaren I see the code, but I'm not sure I understand how the pieces fit together. Are you saying that we run this for each extension? If so, does that remove the need for R/O mode or to pause publication? |
@tfroment FYI |
@kineticsquid It's an example of a migration job that runs in the background. It is for when extra processing is needed that can't be done in a SQL migration script. We can run a similar migration job for each Yes, there's no need for a read-only mode or to pause publication. |
@amvanbaren Understood. Do we need to first change how we process published extensions to not create entries for all of these files, or have we already made that improvement? |
@kineticsquid In eclipse/openvsx#1100 resources are no longer processed and existing resources are deleted. |
@amvanbaren Got it. Do we have any more work to do on this one then after eclipse/openvsx#1100 is deployed? |
Hi John. We need a procedure on how to clean up the database from time to time to prevent the size to become uncontrollable. Can you please provide us the steps on what we can clean etc. Thanks
The text was updated successfully, but these errors were encountered: