Replies: 1 comment
|
Hi @yunhao, thanks for starting up this discussion, and we definitely agree that certain apps out there would benefit from this kind of system. But, as you mention, it does not exactly play nicely with And given that this library is so focused on interfacing with So is there a chance you could build some kind of If you ever come across something that is internal/private to SQLiteData/StructuredQueries that you need, just let us know and we can determine if there is a workaround, or if we should make that API public. And for reference, there is already someone who has built an undo system on top of SQLiteData, and it follows the pattern I described above. A new object for managing undo along with triggers for listening to changes in order to push data to an undo stack. |
Uh oh!
There was an error while loading. Please reload this page.
SQLiteData is great, especially its CloudKit sync and sharing support. I’m wondering whether it could offer more flexibility around
CKAssetfor apps with large amounts of binary data.Use case
Consider a Notes-like app:
The problem
This works well at small scale, but becomes problematic when attachments grow from hundreds of MB to many GB. Every device may end up storing a full local copy, including attachments from old notes that are rarely opened.
Discussion #130 already touches on external storage, but I think there are two separate concerns:
Desired behavior
Ideally, an asset-heavy app could:
CKAsset.The main limitation seems to be
CKSyncEngine: its fetch API does not expose field-level filtering likeCKFetchRecordZoneChangesOperation.ZoneConfiguration.desiredKeys, so it does not seem possible to sync the record metadata while intentionally leaving the asset field unfetched.Question
Would SQLiteData be interested in supporting this kind of asset model as a first-class feature?
Alternatively, could
SyncEngineexpose hooks that let applications manageCKAssetfetching themselves, while SQLiteData continues to handle metadata sync, hierarchy, conflict resolution, and CloudKit Sharing?All reactions