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

perf: batch delete in chunks of 50 #4

Merged
merged 1 commit into from
Aug 9, 2023
Merged

Conversation

iBotPeaches
Copy link
Member

This now works as follows:

  • Requests text output, broken by newline so we can easily bash split
  • Starts a loop and works up to chunk size before issuing delete
  • Uses a small chunk size at present (50) because anything larger makes it real tough to see what is going on
  • Supports cleaning up an delete if not divisible by 50
  • Still supports dry run

@iBotPeaches iBotPeaches merged commit d56bfca into master Aug 9, 2023
@iBotPeaches iBotPeaches deleted the optimize-batch-delete branch August 9, 2023 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants