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

More robust deleteAll #22

Merged
merged 2 commits into from
Jan 12, 2019
Merged

Conversation

arusanovt
Copy link

As you may have noticed current implementation first gets all KEYS and then issue a DEL command, this is slow and frequently fails on a large number of keys.
This PR is using LUA script to SCAN for matched keys in portions of 1000 and then UNLINK them (async DEL command)

Also there was a bug in master...arusanovt:master#diff-4048fe793500ebbb7a3a2054f1bdfbe5R92 pattern wasn't passed to store so all keys got deleted always

@coveralls
Copy link

Coverage Status

Coverage decreased (-1.5%) to 89.956% when pulling 93f4ba3 on arusanovt:master into 8ed2056 on pasupulaphani:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage decreased (-1.5%) to 89.956% when pulling 93f4ba3 on arusanovt:master into 8ed2056 on pasupulaphani:master.

@coveralls
Copy link

coveralls commented Nov 28, 2018

Coverage Status

Coverage decreased (-0.2%) to 91.266% when pulling 00f7d66 on arusanovt:master into 8ed2056 on pasupulaphani:master.

@pasupulaphani pasupulaphani merged commit f8464b6 into pasupulaphani:master Jan 12, 2019
@pasupulaphani
Copy link
Owner

@arusanovt thank you for the PR.

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.

4 participants