Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
fatbobman committed Jul 25, 2022
1 parent b89c5ef commit 269b2a6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ For transactions generated in the backend context, the backend context should al
allAuthors: ["appAuthor", "extensionAuthor", "appBatchAuthor"],
```

### includingCloudKitMirroring

Whether or not to merge network data imported by Core Data with CloudKit, is only used in scenarios where the Core Data cloud sync state needs to be switched in real time. See [Toggling Core Data's cloud sync state in real time](https://www.fatbobman.com/posts/real-time-switching-of-cloud-syncs-status/) for details on usage

### batchAuthors

Some authors (such as background contexts for batch changes) only create transactions and do not merge and clean up transactions generated by other authors. You can speed up the cleanup of such transactions by setting them in batchAuthors.
Expand Down
4 changes: 4 additions & 0 deletions READMECN.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ allAuthors: ["appAuthor", "extensionAuthor"],
allAuthors: ["appAuthor", "extensionAuthor", "appBatchAuthor"],
```

### includingCloudKitMirroring

是否合并由 Core Data with CloudKit 导入的网络数据,仅用于需要实时切换 Core Data 云同步状态的场景。具体用法请参阅 [实时切换 Core Data 的云同步状态](https://www.fatbobman.com/posts/real-time-switching-of-cloud-syncs-status/)

### batchAuthors

某些 author(例如用于批量更改的后台上下文)只会创建事务,并不会对其他 author 的产生事务进行合并和清理。通过将其设置在 batchAuthors 中,可以加速该类事务的清理。
Expand Down

0 comments on commit 269b2a6

Please sign in to comment.