cancel
Showing results for 
Search instead for 
Did you mean: 

how to generate/store document id for every document added

snowch
Champ in-the-making
Champ in-the-making
I would like a unique document id to be generated and displayed for every document added.  The id for a particular document must not change on backup/restore (and must be consistent across standby servers).  Ideally, each version of a document would have a unique id.

Is there any (newbie level) documentation that will help me do this?

Thanks in advance …
1 REPLY 1

gavinc
Champ in-the-making
Champ in-the-making
Each and every object has a GUID which is obviously unique. If you preserve ids during export/import then these will remain consistent.

The property is called "sys:node-uuid".

There is also an id that is allocated by the database called "sys:node-dbid", however, i'm not sure this will be preserved across backups (export/import).