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

Fix up scripts with batched iterator, add toggleAdmin #170

Merged
merged 1 commit into from
Dec 22, 2024

Conversation

ekzhang
Copy link
Owner

@ekzhang ekzhang commented Dec 22, 2024

The scripts folder was previously not working due to there being too many items in the database now. This fixes that, using a function called databaseIterator(), which goes through the entries of a database subtree by key (always indexed) in batches of 1000.

I fixed a couple scripts to use this new function. Also added a toggleAdmin script for admin management otherwise.

@ekzhang ekzhang enabled auto-merge (squash) December 22, 2024 21:15
@ekzhang ekzhang disabled auto-merge December 22, 2024 21:17
@ekzhang ekzhang merged commit 9aec3b9 into main Dec 22, 2024
4 checks passed
@ekzhang ekzhang deleted the ekzhang/new-functions-edit branch December 22, 2024 21: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.

1 participant