tags:

views:

72

answers:

2

Say, values would be 1000-characters long.

A: 

You could use a 64-bit integer field as backing and then convert to base 36, putting as many leading 0's as are needed in order to pad to your target number of characters (1,000 in this case).

David Pfeffer
+1  A: 

Are you sure you don't just want to use UUIDs? They're only 32 chars long, but there are near infinite combinations.

TravisO