5

I did search but I still don't have a clear idea. I used the "universal id" (UNID) many times but never "note id" so want to know the difference.

xlm
  • 6,854
  • 14
  • 53
  • 55
shreeram banne
  • 526
  • 4
  • 12

1 Answers1

4

The universal ID uniquely identifies a document across all replicas of a database.
The universal ID is a 32-character combination of hexadecimal digits (0-9, A-F).

If two documents in replica databases share the same universal ID, the documents are replicas. If you modify the UNID of an existing document, it becomes a new document.

The note ID uniquely identifies a document within a particular database.
The note ID is an 8-character combination of letters and numbers.

A note ID represents the location of a document within a specific database file, so documents which are replicas of one another generally have different note IDs.

xlm
  • 6,854
  • 14
  • 53
  • 55
Knut Herrmann
  • 30,880
  • 4
  • 31
  • 67
  • 2
    It should also be noted that it is possible for the noteid of a given document to change during many routine administrative procedures. Code should never depend on it to remain the same. I.e., definitely do not store noteids as a way to maintain relationships between documents. – Richard Schwartz Jun 08 '15 at 14:24
  • 1
    And although it is much more rare for administrative procedures to change documents' UNIDs, there are cases where this can happen as well. E.g. documents have been accidentally deleted and the deletions have fully replicated, so they are restored from a non-replica copy or simply re-created. Given this possibility, storing UNIDs as a way to maintain relationships between documents is not 100% safe either. – Richard Schwartz Jun 08 '15 at 14:27