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

Feature request: Add an ability to trim trailing zeros in decimals #2155

Open
KAMAELUA opened this issue Jul 31, 2023 · 1 comment
Open

Feature request: Add an ability to trim trailing zeros in decimals #2155

KAMAELUA opened this issue Jul 31, 2023 · 1 comment

Comments

@KAMAELUA
Copy link

My team recently faced an issue with current decimal representation in string. Our database migrates to decimal(38,16) -- this is a pretty big decimal precision, but in real environment there could be only one record of 100k rows with such precision.

So, in most cases, we began to receive a lot of data with zero characters like 0.0000000000000000 - this value is equals to 0, but it cause to grows up memory usage and JSON size in component communications.

Therefore, I would like to propose to add an ability to trim trailing zeros in decimals and control it by passing variable to connection config.

@sidorares
Copy link
Owner

Thats an oddly specific flag. Before we discuss the PR a question - have you considered typeCast? Do you want ti have your change that low for a performance reason or there are other considerations?

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

2 participants