-
Notifications
You must be signed in to change notification settings - Fork 16
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
Use Grid instead of int as primary key. #2040
Comments
https://dvoituron.com/2022/04/07/generate-small-unique-identifier/ |
Those objects need the id: Beatmap:
Stage:
Seems duplicated id is not the main issue. |
I think 7 characters as primary key is enough. |
And we need to make sure that the generated singer or lyric's id should not be null in the test case. |
Not very sure if it's over-design but we can follow how |
Or maybe make the id has it's own struct? Or |
Note: See: |
There's the sample code how serialize/deserialize the Guid without customized serializer.
|
And note that we can make the "IHasPrimaryKey" interface in the |
Guess should be able to close this issue because should not have the element id in the skin eventually. |
Instead of finding the largest index from the list of hit-object, like:
maybe should be better to just use the
GUID
to prevent the duplicated id.Another benefit:
SkinInfo
did in the osu.gameAnd note that:
change the algorithm for make the unique id shorter or not easier to duplicated
at any time.The text was updated successfully, but these errors were encountered: