Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/content/60/9972860/html/smf/Sources/Load.php(225) : runtime-created function on line 3

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/content/60/9972860/html/smf/Sources/Load.php(225) : runtime-created function on line 3
Allocating unique IDs on import
The DAM Forum
Welcome, Guest. Please login or register.
December 05, 2020, 10:39:53 AM

Login with username, password and session length
Search:     Advanced search
28033 Posts in 5147 Topics by 2903 Members
Latest Member: kbroch
* Home Help Search Login Register
+  The DAM Forum
|-+  Software Discussions
| |-+  ImageIngester and ImageVerifier
| | |-+  Allocating unique IDs on import
« previous next »
Pages: [1] Print
Author Topic: Allocating unique IDs on import  (Read 2690 times)
David Burren
Newbie
*
Posts: 42


View Profile
« on: May 15, 2008, 08:47:11 AM »

In a thread in the Naming Issues forum Mark pointed out there's an IIP macro for allocating "globally" unique IDs: {@uniqueid}
This isn't covered in the IIP documentation, other than a single line near the end: "UniqueID (sample data): ABCDEF0123456"

Can we have any further documentation?  Is it an incrementing counter?  Is it a decimal or hexadecimal number?  Is it left-padded with zeros out to 13 digits?  Or is it something else entirely?
The above sample data hints that it's a hexadecimal number, but unfortunately if it is then filenames that include it won't be sorted in ascending order (with both the OS X Finder and Windows Explorer, "12AA" will get sorted before "1200" as they sort the numeric component of the name before proceeding to the rest: 12 is less than 1200).

Thanks for any info
Logged

__
David
Marc Rochkind
Hero Member
*****
Posts: 1136


View Profile WWW Email
« Reply #1 on: May 15, 2008, 09:35:58 AM »

David--

The uniqueID is the current time to the microsecond, in hex, padded to exactly 13 digits.

It is possible for two different computers to generate the sane uniqueID. It's only unique per computer.

--Marc
Logged

Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!