-
Notifications
You must be signed in to change notification settings - Fork 554
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
Conversation
async function derefedProfiles(dbTxn: Database) { | ||
dbTxn.assertTransaction() |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 🤔
There was a problem hiding this 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 👍
successfully ran this |
Building off of #959
Deleting all currently dereferenced blobs
Test & code for this do not need to be merged in, just ran