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

Dataset primary-key hash options #1

Open
ppKrauss opened this issue Oct 20, 2017 · 0 comments
Open

Dataset primary-key hash options #1

ppKrauss opened this issue Oct 20, 2017 · 0 comments

Comments

@ppKrauss
Copy link
Contributor

The key column of dataset.big can be NULL, but ideal is to keep an primary-key even when it is long and complex. Adding _SHA1_, _MD5_ or _CRC32_ hashes as option is an issue for long-text keys, or when no key exists. Options:

  • hash(key): when primary key exist and the option is used;
  • hash(c::text): when the option is used but there are no primary key;
  • hash(other_key): "overwrite" to a new primary key.

Ideal is to convert hash to base64 in order to optimize comparisons and reduce space.

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

1 participant