Quantcast
Channel: SCN: Message List - SAP SQL Anywhere
Viewing all articles
Browse latest Browse all 2182

Re: Design decision - to use UUIDs as primary key or not?

$
0
0

If you are looking at UUIDs vs. autoincrement or some other sort of integer based key, the main differences from the database perspective are:

1) UUIDs require more storage space than auto-increment and indexes on these columns will be less efficient.  However, your tables are small enough that you are not likely to see a significant difference between using UUIDs as opposed to auto-increment keys.

2) UUIDs have no order, so you can't use them as an indicator of when a row was inserted compared to another row.

 

HTH,

 

--Jason


Viewing all articles
Browse latest Browse all 2182

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>