Description
Instead of getting MAX(id) from a table to set its sequence, use the sequence value on the original primary. Using MAX(id) doesn't account for deleted records and could end up re-using identifiers that have been stored in external systems.
Description
Instead of getting
MAX(id)from a table to set its sequence, use the sequence value on the original primary. UsingMAX(id)doesn't account for deleted records and could end up re-using identifiers that have been stored in external systems.