
April 16th, 2012, 03:03 PM
|
|
Contributing User
|
|
Join Date: Oct 2003
Location: Germany
|
|
Quote: | Originally Posted by edb500 1) What data type should be used as a unique ID for a row? I noticed most sites recommend using an integer with auto increment. This seems rather rubbishy? | Go for a bigserial (which is PostgreSQL's "version" of auto increment).
There is nothing wrong with that.
UUIDs are nice if you need to ensure uniqueness across different systems, but they do have some performance and storage overhead.
|