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

refactor: stats compute string length stats for string type only #2471

Merged
merged 2 commits into from
Jan 24, 2025

Conversation

jqnatividad
Copy link
Collaborator

before, we were also doing so for int/float types, thinking it will be useful for storage capacity planning as numbers are often stored as strings.

But strictly speaking, computing length for numbers doesn't really make sense (we can derive that with other stats anyway).

This change make stats run a bit faster too...

before, we were also computing for ints/floats, which didn't make sense thinking more about it.  At first, I was thinking it can be used to compute storage of numbers as strings, but other than that special case, it wasnt that useful
and not other data types as well.

This should also make stats a little bit faster
@jqnatividad jqnatividad merged commit a2ac8f5 into master Jan 24, 2025
9 of 10 checks passed
@jqnatividad jqnatividad deleted the stats-strlen-stats-for-stringtype-only branch January 24, 2025 13:03
tests/test_index.rs Dismissed Show dismissed Hide dismissed
tests/test_stats.rs Dismissed Show dismissed Hide dismissed
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.

1 participant