When you're using NSPersistentCloudKitContainer for the public database, all public data will be replicated to your users' devices. For your use case, it's probably best to not use NSPersistentCloudKitContainer for the public database and operate on it using the regular CloudKit operations.
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags: