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

Delete blobs app migration #963

Closed
wants to merge 24 commits into from
Closed

Delete blobs app migration #963

wants to merge 24 commits into from

Conversation

dholms
Copy link
Collaborator

@dholms dholms commented May 3, 2023

Building off of #959

Deleting all currently dereferenced blobs

Test & code for this do not need to be merged in, just ran

@dholms dholms changed the base branch from main to delete-deref-blobs May 3, 2023 02:18
@dholms dholms marked this pull request as ready for review May 3, 2023 15:59
Base automatically changed from delete-deref-blobs to main May 3, 2023 23:34
Comment on lines 80 to 81
async function derefedProfiles(dbTxn: Database) {
dbTxn.assertTransaction()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might find this is heavy for a single transaction. If that's an issue, even just doing it in batches by did might do the trick.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think we even need to use transactions here?

I actually don't see much that needs to be done transactionally in this 🤔

Copy link
Collaborator

@devinivy devinivy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left one minor thought, but the approach looks solid 👍

@dholms
Copy link
Collaborator Author

dholms commented May 9, 2023

successfully ran this

@dholms dholms closed this May 9, 2023
@dholms dholms deleted the delete-blobs-app-migration branch May 9, 2023 10:17
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