Should I use UUID as primary key?

Should I use UUID as primary key?
Answer
Pros. Using UUID for a primary key brings the following advantages: UUID values are unique across tables, databases, and even servers that allow you to merge rows from different databases or distribute databases across servers. UUID values do not expose the information about your data so they are safer to use in a URL.
 

Tìm kiếm

Back
Top