When two profiles merge how do I know which Entity ID will survive?

The platform will choose ID from the oldest of the two. If the two profiles were created simultaneously, the platform will select the lexicographically larger of the two.

______

Being lexicographically larger means that one string is greater than another when compared using the same ordering rules as in a dictionary. This ordering is based on the lexical order of the characters, usually determined by their Unicode or ASCII values.

Here’s how it works:

  1. Character-by-character comparison: The strings are compared from left to right, one character at a time.
  2. Determination of order:
    • If a character in one string is larger than the corresponding character in the other string, the string containing the larger character is considered lexicographically larger.
    • If the characters are the same, the comparison moves to the next character.
  3. Length matters: If all characters in the shorter string match the corresponding characters in the longer string, the longer string is considered lexicographically larger.

Examples:

  1. "banana" vs. "apple":

    • Compare 'b' (98 in ASCII) with 'a' (97 in ASCII).
    • Since 'b' > 'a', "banana" is lexicographically larger than "apple".
  2. "apple" vs. "apples":

    • The first five characters are the same, but "apples" has an extra character ('s').
    • "apples" is lexicographically larger because it is longer.
  3. "cat" vs. "catalog":

    • The first three characters match, but "catalog" is longer.
    • "catalog" is lexicographically larger.
  4. Case sensitivity:

    • "Zoo" vs. "apple":
      • The uppercase 'Z' (90 in ASCII) is smaller than lowercase 'a' (97 in ASCII), so "Zoo" is lexicographically smaller than "apple".
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.