Re:Ask HN: How should I create a unique id for entries that ...
by tim_nuwin on Wednesday December 10, 2014 @09:44AM
(#8729348)
This looks like a good implementation:
http://kvz.io/blog/2009/06/10/create-short-ids-with-php-like...
The only way to not view a person's board is if it's private.. There are some services that for their pages will have id's that are 7 or so characters long, and very compact, the uuid you're referencing seems kind of ugly.
I would still keep my incremental ID in the table as a PK, but maybe I could generate a new value per row for a public URL ID. That public url id could be based off of their PK but I don't know what would be the best way to generate a short url id w/ the PK as a key.