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

Native UUID supports #361

Closed
alendit opened this issue Aug 9, 2019 · 1 comment
Closed

Native UUID supports #361

alendit opened this issue Aug 9, 2019 · 1 comment
Assignees

Comments

@alendit
Copy link

alendit commented Aug 9, 2019

Some databases, i.e. Postgres have a native UUID type support. Sqlg known the property type UUID, too, but rather converts it to a string before inserting it into the database. Using a native type would have obvious performance benefits, equality and comparison operations on UUID are vastly faster than they are on string on considerable length.

I propose to add a supportsUUID flag to the SqlDialect and change add a check in setKeyValueAsParameter for it. With some other minor changes we can get UUID support.

If this approach is fine, I'll send a PR.

@pietermartin
Copy link
Owner

Yeah sounds good, thanks.

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

No branches or pull requests

2 participants