Is there no performance problem with the database using the primary GUID key? #12653
Unanswered
ashkandehnavi
asked this question in
Q&A
Replies: 1 comment 1 reply
-
https://docs.abp.io/en/abp/latest/Guid-Generation#why-prefer-guid |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
guid vs long primary key
Instead of using the GUID for the primary table key, it is recommended to use the LONG (incremental) type for the primary key and another field called ExId (ExternalId) to be used in the application, the type of which is specified by TKey. This field should also be considered as a unique key in the settings.
This structure helps to improve the performance of the tables and the relationship between them.
Beta Was this translation helpful? Give feedback.
All reactions