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

Make Boolean storage more efficient #123

Merged
merged 1 commit into from Jul 13, 2023

Conversation

lewispb
Copy link
Contributor

@lewispb lewispb commented Jul 9, 2023

Closes #116

Rather than store the boolean as a string, store it as a 1 or 0. This is more efficient in terms of storage.

This change is backwards-compatible, so existing boolean values will continue to work as expected.

cc @roharon

Rather than store the boolean as a string, store it as a 1 or 0. This
is more efficient in terms of storage.

This change is backwards-compatible, so existing boolean values will
continue to work as expected.
@guilleiguaran guilleiguaran merged commit 916f6ef into rails:main Jul 13, 2023
16 checks passed
@lewispb lewispb deleted the more-efficient-boolean-casting branch July 13, 2023 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Is there any reason about Kredis.boolean set redis value to "true", "false" instead of "1", "0" ?
4 participants