Sync engine metadata grows to ~10× the user database #535
KayLeung
started this conversation in
CloudKit Preview
Replies: 1 comment
|
Hi @KayLeung, thanks for the report. I'm not sure how to square this though:
Compressing just Further, in the first image, which compression image is being used? |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
The sidecar sync meta DB is 757MB compared to 70MB for the production DB.
I had AI research this, and it suggests custom key-prefix encoding + zlib compression as a fix (e.g. shortening/removing repeated prefixes like sqlitedata_icloud_userModificationTime_).
some quick benchmark( ~70MB DB )
Full DB:

Partial:

For reference, SwiftData compresses its store CKRecord with LZFSE.
I'd like to find a fix upstream, or a hook point that lets us apply this without forking the project.
Thanks.
All reactions