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

tools: Hash defrag script #1723

Merged
merged 1 commit into from
Aug 22, 2023
Merged

Conversation

dranikpg
Copy link
Contributor

So we don't loose it

@dranikpg dranikpg marked this pull request as ready for review August 21, 2023 17:25
info_worker = asyncio.create_task(infofn())

keys = []
async for key in r.scan_iter("*", count=batch_size * 2, type="hash"):
Copy link
Collaborator

Choose a reason for hiding this comment

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

there is nothing special for hashes here. I suggest making the type an optional argument and scan everything by default .
Also, let's rename the script to defrag_db.py

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>
@dranikpg dranikpg merged commit 8b6de91 into dragonflydb:main Aug 22, 2023
7 checks passed
@dranikpg dranikpg deleted the script-defrag-hashes branch September 15, 2023 06:37
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