共享 CloudKit 容器如何分配数据使用量?
How do shared CloudKit containers allocate data usage?
与 iOS 10 CloudKit 现在可以共享私有容器。存储 space 要求是在用户之间共享还是仅计入一个用户?
看起来它只计入拥有原始共享记录的一个用户。:
So, the correct way to add a new record via the shared database is to set a Parent Reference and link it to the shared hierarchy.
So, even though you're adding a new record for the participant via the shared database, that new record lives in the owner's private DB.
So, what this means is all records that are added by the participant are counted against the owner's quota.
So, the producement's quota is not affected and your developer quota is not affected.
The owner's private database is the only place that we store these records so we can count them only against the owner's quota.
来自 WWDC 2016, 226.
与 iOS 10 CloudKit 现在可以共享私有容器。存储 space 要求是在用户之间共享还是仅计入一个用户?
看起来它只计入拥有原始共享记录的一个用户。:
So, the correct way to add a new record via the shared database is to set a Parent Reference and link it to the shared hierarchy.
So, even though you're adding a new record for the participant via the shared database, that new record lives in the owner's private DB.
So, what this means is all records that are added by the participant are counted against the owner's quota.
So, the producement's quota is not affected and your developer quota is not affected.
The owner's private database is the only place that we store these records so we can count them only against the owner's quota.
来自 WWDC 2016, 226.