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

Handling of DB value trimming properties #47 #49

Merged
merged 4 commits into from
Apr 21, 2024

Conversation

lukasz-gryzbon
Copy link
Contributor

@lukasz-gryzbon lukasz-gryzbon commented Apr 21, 2024

Based on the tip from here: https://www.postgresql.org/docs/current/datatype-character.html

There is no performance difference among these three types, apart from increased storage space when using the blank-padded type, and a few extra CPU cycles to check the length when storing into a length-constrained column. While character(n) has performance advantages in some other database systems, there is no such advantage in PostgreSQL; in fact character(n) is usually the slowest of the three because of its additional storage costs. In most situations text or character varying should be used instead.

All the varchar() fields have been replaced with text and parameterised trimming within the library has been added.

Additionally, Gradle has been upgraded to 8.7.

@lukasz-gryzbon lukasz-gryzbon merged commit dd04402 into main Apr 21, 2024
5 checks passed
@lukasz-gryzbon lukasz-gryzbon deleted the #47-custom-trimming branch April 21, 2024 16:36
@nickmcdowall
Copy link
Contributor

🎉 This PR is included in version 3.1.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants