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

KEYS is "evil"? #43

Open
emhoracek opened this issue Mar 11, 2017 · 0 comments
Open

KEYS is "evil"? #43

emhoracek opened this issue Mar 11, 2017 · 0 comments

Comments

@emhoracek
Copy link
Member

emhoracek commented Mar 11, 2017

Apparently, KEYS is "evil".

From the official docs:

Warning: consider KEYS as a command that should only be used in production environments with extreme care. It may ruin performance when it is executed against large databases. This command is intended for debugging and special operations, such as changing your keyspace layout. Don't use KEYS in your regular application code. If you're looking for a way to find keys in a subset of your keyspace, consider using SCAN or sets.

The "sets" possibility seems interesting!

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

No branches or pull requests

1 participant