Core Data shared persistent container partial mirror

In the "Core Data Cloudkit Public Database" session, it is mentioned that you will have a "complete local mirror" of all of the CloudKit data.
Does this mean that all of the data in the public database will be taking up space on every user's device, even if they do not use the data?

I have an app that allows users to create entries of text that they want to memorize. I use the persistent Core Data container to sync the users data between devices and this works extremely well.

If I used Core Data shared persistent containers to allow publishing of texts, would there be a way for users to only download specific data? for example, I would like to allow students to download a group of texts published by their teacher
Answered by Frameworks Engineer in 616462022

Does this mean that all of the data in the public database will be taking up space on every user's device, even if they do not use the data?

Yes.

If I used Core Data shared persistent containers to allow publishing of texts, would there be a way for users to only download specific data? for example, I would like to allow students to download a group of texts published by their teacher

No. The public database is not a replacement for the Shared Database.
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.
Accepted Answer

Does this mean that all of the data in the public database will be taking up space on every user's device, even if they do not use the data?

Yes.

If I used Core Data shared persistent containers to allow publishing of texts, would there be a way for users to only download specific data? for example, I would like to allow students to download a group of texts published by their teacher

No. The public database is not a replacement for the Shared Database.
Core Data shared persistent container partial mirror
 
 
Q