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

UUID v7をIDとして使えると便利かもしれない #14637

Open
1 task
KisaragiEffective opened this issue Sep 27, 2024 · 2 comments
Open
1 task

UUID v7をIDとして使えると便利かもしれない #14637

KisaragiEffective opened this issue Sep 27, 2024 · 2 comments
Labels
✨Feature This adds/improves/enhances a feature

Comments

@KisaragiEffective
Copy link
Collaborator

Summary

題名に同じ

Purpose

UUID v7は時系列順にソートでき、オープンな規格なのでデコードする時に外部ツールに頼る必要がない
また拡張を入れるとネイティブにサポートされるようになるためパフォーマンス的にも有利になるかもしれない
デメリットとしては文字あたりの情報が4ビットしかないためmidxよりも長くなってしまう

Do you want to implement this feature yourself?

  • Yes, I will implement this by myself and send a pull request
@syuilo
Copy link
Member

syuilo commented Sep 27, 2024

ハイフンが含まれるのが微妙だわね

@syuilo syuilo added the ✨Feature This adds/improves/enhances a feature label Sep 27, 2024
@KisaragiEffective
Copy link
Collaborator Author

バイナリから文字列化するときに消せばいいだけな気もする (それをUUIDと呼ぶのかはさておき)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨Feature This adds/improves/enhances a feature
Projects
None yet
Development

No branches or pull requests

2 participants