Replies: 2 comments
-
|
Hi @Ryu0118, as far as I know the So, can you 100% confirm that none of the data was sent to iCloud? And can you share the SQLiteData logs by filtering for the "SQLiteData" subsystem in Xcode? |
Beta Was this translation helpful? Give feedback.
-
|
Hi @Ryu0118, I have not been able to reproduce this issue. I used the CloudKitDemo app that comes with the repo to create 1,000 counters while the sync engine was not running. Then I enabled the sync engine and ran the app from scratch, and from the logs I can see that it correctly batched those results into sets of ~250 records. Here are the logs: Click to expand logsSince this doesn't appear to be an issue with the library I am going to convert it to a discussion. If you can gather more information for us, or provide a minimal project that reproduces the problem, we will look into it more. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
When synchronizing tables with a large number of records (e.g., LocationPoint with GPS coordinates), CloudKit sync fails with a "Limit Exceeded" error because CloudKit has a hard limit of 400 items per request.
This occurs during initial sync or when a large batch of records needs to be synchronized.
Expected behavior
SyncEngineshould automatically chunk large batches of records into groups of 400 or fewer items per CloudKit request, similar to how batch operations are handled in the application layer.Actual behavior
SyncEngineattempts to sync all pending records in a single CloudKit request, which fails when the count exceeds 400 items.Reproducing scenario
SyncEnginefor that tableResult: CloudKit sync fails with "Limit Exceeded (27/1020)" error
Suggested solution
Add automatic chunking in
SyncEngineto split large batches into 400-item chunks before sending to CloudKit, similar to:Destination operating system
iOS 26
Xcode version information
Xcode 26.2
Beta Was this translation helpful? Give feedback.
All reactions