Skip to content

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 <[email protected]>
@dranikpg dranikpg force-pushed the script-defrag-hashes branch from 18f3325 to 98c4a91 Compare August 21, 2023 18:00
@dranikpg dranikpg merged commit 8b6de91 into dragonflydb:main Aug 22, 2023
@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