Replies: 1 comment 2 replies
-
In addition, I don‘t think there seems to be any code change when using Snowflake ID. Only need to modify the general ID configuration. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Usually, we don't want to expose the default auto-increment id of the database, so that front-end users may obtain some information, such as the number of users.
One approach is to use id encryption to generate a new id, which requires encryption and decryption for each input and output, consuming computing performance. Another way is to store one more complex id, which consumes physical memory.
An ideal id should preferably meet the following conditions:
Therefore, we can use the snowflake algorithm to directly store an id field.
@wu-clan What do you think? Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions