CloudKit 记录版本控制

CloudKit record version control

我正在使用 recordChangeTag 比较 CKRecord 的版本,其中我看到值随时间从 n9(2 个字符)变为 1c1(3 个字符)。

Apple documentation中:

In your own code, you can use change tokens to distinguish between two different versions of the same record.

我想问:

  1. 这个字段中的字符串值是递增的吗?
  2. 比较记录顺序的正确方法是什么?
  1. recordChangeTag 系统字段在更新记录时更改 为另一个。没有描述字符串如何变化。
  2. 但是,一旦您发现记录已更改,您可以将新记录的另一个系统字段 modificationDate 的值与您与旧记录的 recordChangeTag 一起保存的值进行比较.